Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Last active January 4, 2016 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianogg9/8580563 to your computer and use it in GitHub Desktop.
Save marianogg9/8580563 to your computer and use it in GitHub Desktop.
$ curl http://localhost:4567 -d prueba.json
where localhost:4567 is my sensu-api address and prueba.json is:
{"timestamp":"2014-01-23T04:22:31.183892+0000","level":"info","message":"publishing check result","payload":{"client":"server01","check":{"name":"check_vmstat","issued":1390278111,"command":"/etc/sensu/plugins/check_ntp_time -H 0.amazon.pool.ntp.org -w 30 -c 60","handlers":["mailer-ses","mailer"],"interval":60,"occurrences":1,"refresh":1800,"flapping":true,"subscribers":["monitoring_server"],"executed":1390278145,"output":"NTP CRITICAL: No response from NTP server\n","status":2,"duration":5.702}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment