Skip to content

Instantly share code, notes, and snippets.

@piavlo
Created November 14, 2012 22:02
Show Gist options
  • Save piavlo/4075139 to your computer and use it in GitHub Desktop.
Save piavlo/4075139 to your computer and use it in GitHub Desktop.
sample sensu event
{
"client": {
"name": "sensu1a.us-east-1",
"address": "sensu1a.us-east-1",
"subscriptions": [
"common",
"sensu"
],
"timestamp": 1352926088
},
"check": {
"command": "/quicklizard/system/scripts/rvm-exec-wrapper /quicklizard/system /etc/sensu/plugins/check-cpu.rb -c 90 -w 80",
"interval": 30,
"occurrences": 3,
"subscribers": [
"hdfs-namenode",
"hdfs-datanode",
"common"
],
"handlers": [
"logevent",
"email"
],
"name": "check_cpu",
"issued": 1352926105,
"output": "CheckCPU TOTAL OK: total=10.09 user=0.92 nice=0.0 system=0.92 idle=89.91 iowait=0.0 irq=0.0 softirq=0.0 steal=8.26 guest=0.0\n",
"status": 0,
"duration": 2.667,
"history": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"2",
"2",
"2",
"2",
"2",
"0"
]
},
"occurrences": 6,
"action": "resolve"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment