Skip to content

Instantly share code, notes, and snippets.

@mago0
Created November 5, 2012 19:12
Show Gist options
  • Save mago0/4019680 to your computer and use it in GitHub Desktop.
Save mago0/4019680 to your computer and use it in GitHub Desktop.
{"timestamp":"2012-11-05T19:10:27.519518+0000","message":"handling event","event":{"client":{"name":"database2a","address":"10.0.3.249","subscriptions":["base","monitoring"],"timestamp":1352142620},"check":{"command":"/etc/sensu/plugins/check-disk.rb -w 90 -c 95 -x nfs,tmpfs,fuse -i /boot,/mnt/data_imports","interval":60,"notification":"Disk usage is too high.","subscribers":["base"],"name":"disk_usage","issued":1352142627,"output":"/etc/sensu/plugins/check-disk.rb:14:in `require': no such file to load -- rubygems (LoadError)\n\tfrom /etc/sensu/plugins/check-disk.rb:14\n","status":1,"duration":0.011,"history":["0","0","0","0","0","0","0","0","0","0","1","1","1","1","1","1","1","1","1","1","1"],"flapping":false},"occurrences":11,"action":"create"},"handler":{"command":"/etc/sensu/handlers/debug.rb","type":"pipe","name":"debug"},"level":"info"}
{"timestamp":"2012-11-05T19:10:27.519973+0000","message":"handling event","event":{"client":{"name":"database2a","address":"10.0.3.249","subscriptions":["base","monitoring"],"timestamp":1352142620},"check":{"command":"/etc/sensu/plugins/check-disk.rb -w 90 -c 95 -x nfs,tmpfs,fuse -i /boot,/mnt/data_imports","interval":60,"notification":"Disk usage is too high.","subscribers":["base"],"name":"disk_usage","issued":1352142627,"output":"/etc/sensu/plugins/check-disk.rb:14:in `require': no such file to load -- rubygems (LoadError)\n\tfrom /etc/sensu/plugins/check-disk.rb:14\n","status":1,"duration":0.011,"history":["0","0","0","0","0","0","0","0","0","0","1","1","1","1","1","1","1","1","1","1","1"],"flapping":false},"occurrences":11,"action":"create"},"handler":{"command":"/etc/sensu/handlers/notification/mailer.rb","type":"pipe","name":"mailer"},"level":"info"}
{"timestamp":"2012-11-05T19:10:27.613334+0000","message":"{\"occurrences\":11,\"action\":\"create\",\"client\":{\"address\":\"10.0.3.249\",\"name\":\"database2a\",\"subscriptions\":[\"base\",\"monitoring\"],\"timestamp\":1352142620},\"check\":{\"name\":\"disk_usage\",\"notification\":\"Disk usage is too high.\",\"issued\":1352142627,\"status\":1,\"flapping\":false,\"history\":[\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"output\":\"/etc/sensu/plugins/check-disk.rb:14:in `require': no such file to load -- rubygems (LoadError)\\n\\tfrom /etc/sensu/plugins/check-disk.rb:14\\n\",\"interval\":60,\"subscribers\":[\"base\"],\"duration\":0.011,\"command\":\"/etc/sensu/plugins/check-disk.rb -w 90 -c 95 -x nfs,tmpfs,fuse -i /boot,/mnt/data_imports\"}}","level":"info"}
{"timestamp":"2012-11-05T19:10:27.974103+0000","message":"only handling every 30 occurrences: database2a/disk_usage","level":"info"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment