Created
December 31, 2013 18:46
-
-
Save jmherbst/8200766 to your computer and use it in GitHub Desktop.
Check definition for testing occurences
This file contains 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
{ | |
"checks": { | |
"check_test_occ": { | |
"command": "check-procs.rb -p testing_occ -C 0 -c 0 -w 1", | |
"subscribers": [ | |
"sensu" | |
], | |
"handlers": [ | |
"logstash" | |
], | |
"occurrences": 3, | |
"interval": 30 | |
} | |
} | |
} |
This file contains 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
{"timestamp":"2013-12-31T18:44:59.212608+0000","level":"info","message":"publishing check result","payload":{"client":"sensu.int.tropo.com","check":{"name":"check_test_occ","issued":1388515498,"command":"check-procs.rb -p testing_occ -C 0 -c 0 -w 1","subscribers":["sensu"],"handlers":["logstash"],"occurrences":3,"interval":30,"executed":1388515498,"output":"CheckProcs CRITICAL: Found 1 matching processes; cmd /testing_occ/\n","status":2,"duration":0.445}}} | |
{"timestamp":"2013-12-31T18:44:59.222798+0000","level":"info","message":"handling event","event":{"client":{"name":"sensu.int.tropo.com","address":"10.1.0.109","subscriptions":["sensu","base"],"timestamp":1388515493},"check":{"command":"check-procs.rb -p testing_occ -C 0 -c 0 -w 1","subscribers":["sensu"],"handlers":["logstash"],"occurrences":3,"interval":30,"name":"check_test_occ","issued":1388515498,"executed":1388515498,"output":"CheckProcs CRITICAL: Found 1 matching processes; cmd /testing_occ/\n","status":2,"duration":0.445,"history":["0","0","2","0","2","0","2","0","2","0","2","0","2","0","2","0","2","0","2","0","2"]},"occurrences":1,"action":"create"},"handler":{"type":"pipe","command":"logstash.rb","severities":["critical","warning","ok"],"name":"logstash"}} | |
{"timestamp":"2013-12-31T18:45:00.226718+0000","level":"info","message":"not enough occurrences: sensu.int.tropo.com/check_test_occ"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment