Description
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.
Usage
- 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.
Hi,
I am trying to send data using curl as:
curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "value": 10 , "label": server[:Server1], "value": 10 }' http://localhost:3030/widgets/server_status
Yet I get the following error:
JSON::ParserError: 757: unexpected token at '{ "auth_token": "YOUR_AUTH_TOKEN", "value": 10 , "label": server[:Server1], "value": 10 }'
And when I send the following . I don`t get any errors yet widget displays no values:
curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "label": "server3", "value": "10" ,"arrow": "icon-ok-sign","color": "green"}' http://localhost:3030/widgets/server_status
What would be the correct way to send data to this widget using curl?
Thanks in advance.