Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created January 27, 2014 13:22
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/8648489 to your computer and use it in GitHub Desktop.
Save marianogg9/8648489 to your computer and use it in GitHub Desktop.
/etc/sensu/handlers/sensu-handler-input-example.json
{
"client":{
"name":"host01",
"address":"10.2.1.11",
"subscriptions":[
"all",
"env_qa",
"frontend",
"proxy",
"apache"
],
"timestamp":1326390159
},
"check":{
"name":"frontend_http_check",
"issued":1326390169,
"output":"HTTP CRITICAL: HTTP/1.1 503 Service Temporarily Unavailable - pattern not found - 593 bytes in 0.001 second response time |time=0.000500s;;;0.000000 size=593B;;;0\n",
"status":2,
"notification":"Frontend HTTP failed",
"command":"PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_http -I 127.0.0.1 -u http://web.example.com/healthcheck.html -R 'pageok'",
"subscribers":[
"frontend"
],
"interval":60,
"handlers":[
"default",
"pagerduty",
"irc",
"twitter",
"campfire"
],
"history":[
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2"
],
"flapping":false
},
"occurrences":1,
"action":"create"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment