Created
February 2, 2012 11:33
-
-
Save joemiller/1723079 to your computer and use it in GitHub Desktop.
example json data passed into Sensu handlers via STDIN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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