Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created February 12, 2014 14:38
Show Gist options
  • Save marianogg9/8956671 to your computer and use it in GitHub Desktop.
Save marianogg9/8956671 to your computer and use it in GitHub Desktop.
{
"timestamp": "2014-02-12T14:21:39.059281+0000",
"level": "info",
"message": "handling event",
"event": {
"client": {
"name": "server",
"address": "server_ip",
"subscriptions": [
"foo",
"bar",
"server_name"
],
"load": {
"warn": "3",
"crit": "4"
},
"disk_free": {
"warn": "15%",
"crit": "10%"
},
"mem_used": {
"warn": "90",
"crit": "95"
},
"list_count": {
"warn": "9000",
"crit": "10000"
},
"redis_key": {
"value": "logstash"
},
"timestamp": 1392214885
},
"check": {
"handlers": [
"twitter"
],
"command": "/etc/sensu/plugins/check_redis.rb -c 20 -w 10 -h redis_server -k logstash-ML",
"interval": 60,
"refresh": 120,
"flapping": false,
"subscribers": [
"server_name"
],
"name": "check_redis-ML",
"issued": 1392214898,
"executed": 1392214898,
"output": "CRITICAL_text_output\n",
"status": 2,
"duration": 0.136,
"history": [
"2",
"0",
"2",
"2",
"0",
"2",
"2",
"2",
"0",
"0",
"0",
"0",
"2",
"2",
"2",
"2",
"0",
"2",
"2",
"2",
"2"
]
},
"occurrences": 4,
"action": "create"
},
"handler": {
"type": "pipe",
"command": "/etc/sensu/handlers/twitter.rb",
"name": "twitter"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment