Created
May 3, 2014 01:59
-
-
Save phumpal/2543ae8d947ea64a5326 to your computer and use it in GitHub Desktop.
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":"2014-05-03T01:55:11.241076+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
}, | |
"output":"only handling every 60 occurrences: REDACTED/check_cpu\n" | |
}{ | |
"timestamp":"2014-05-03T01:55:40.856803+0000", | |
"level":"info", | |
"message":"handling event", | |
"event":{ | |
"client":{ | |
"name":"REDACTED", | |
"address":"REDACTED", | |
"subscriptions":[ | |
"system" | |
], | |
"timestamp":1399082123 | |
}, | |
"check":{ | |
"command":"check-cpu.rb -w 75 -c 85", | |
"handlers":[ | |
"slack" | |
], | |
"subscribers":[ | |
"system" | |
], | |
"standalone":true, | |
"interval":30, | |
"occurences":3, | |
"name":"check_cpu", | |
"issued":1399082139, | |
"executed":1399082139, | |
"output":"CheckCPU TOTAL OK: total=22.08 user=9.54 nice=0.0 system=12.42 idle=77.92 iowait=0.0 irq=0.0 softirq=0.0 steal=0.13 guest=0.0\n", | |
"status":0, | |
"duration":1.245, | |
"history":[ | |
"2", | |
"2", | |
"2", | |
"2", | |
"0", | |
"0", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"2", | |
"0" | |
] | |
}, | |
"occurrences":14, | |
"action":"resolve" | |
}, | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
} | |
}{ | |
"timestamp":"2014-05-03T01:55:41.222574+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
}, | |
"output":"/etc/sensu/handlers/slack.rb:49:in `get_setting': undefined method `[]' for nil:NilClass (NoMethodError)\n" | |
}{ | |
"timestamp":"2014-05-03T01:55:41.223376+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
}, | |
"output":"\tfrom /etc/sensu/handlers/slack.rb:25:in `slack_token'\n" | |
}{ | |
"timestamp":"2014-05-03T01:55:41.223627+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
}, | |
"output":"\tfrom /etc/sensu/handlers/slack.rb:68:in `post_data'\n" | |
}{ | |
"timestamp":"2014-05-03T01:55:41.223807+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
}, | |
"output":"\tfrom /etc/sensu/handlers/slack.rb:54:in `handle'\n" | |
}{ | |
"timestamp":"2014-05-03T01:55:41.224023+0000", | |
"level":"info", | |
"message":"handler output", | |
"handler":{ | |
"type":"pipe", | |
"command":"/etc/sensu/handlers/slack.rb", | |
"token":"REDACTED", | |
"team_name":"REDACTED", | |
"channel":"#ops", | |
"bot_name":"sensu", | |
"message_prefix":"@channel", | |
"name":"slack" | |
}, | |
"output":"\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-plugin-0.2.2/lib/sensu-handler.rb:41:in `block in <class:Handler>'\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment