A Dashing widget that checks whether a server is responding to either an http or ping request. It displays either a check or alert depending on the response.
- Add the widget HTML to your dashboard
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="server_status" data-view="ServerStatus" data-title="Server Status"></div>
</li>
-
Create a directory titled "server_status" under your widgets directory and move server_status.coffee, server_status.html, and server_status.scss into that directory.
-
Modify the servers array of the server_status.rb file.
-
Move server_status.rb into your jobs folder.
@txaume79, thanks for the little snippet - worked perfectly :)
Hi @joergrech & @Karatyus,
I've forked this to use 'typhoeus' for the http requests bit and cleaned up the job file a bit. Have a look and see if it works for what you want to do?
https://gist.github.com/joshuafernandes
Cheers