Skip to content

Instantly share code, notes, and snippets.

@jessereynolds
Last active August 29, 2015 14:13
Show Gist options
  • Save jessereynolds/6b925d875ec988802f5b to your computer and use it in GitHub Desktop.
Save jessereynolds/6b925d875ec988802f5b to your computer and use it in GitHub Desktop.
sensu - unable to get checks executing
{
"checks": {
"check_flapper": {
"handlers": ["default"],
"command": "PATH=$PATH:/usr/lib/nagios/plugins check_tcp -H 10.0.2.15 -p 12345",
"interval": 5,
"standalone": true
}
}
}
{
"client": {
"name": "flapjack.example.org",
"address": "10.0.2.15",
"bind": "127.0.0.1",
"subscriptions": ["sensu-test", "foo"],
"safe_mode": false,
"keepalive": {
}
}
}
{"timestamp":"2015-01-22T23:40:14.050707-0800","level":"warn","message":"loading config file","file":"/etc/sensu/conf.d/checks/check_flapper.json"}
{"timestamp":"2015-01-22T23:40:14.050769-0800","level":"warn","message":"config file applied changes","file":"/etc/sensu/conf.d/checks/check_flapper.json","changes":{"checks":{"check_flapper":[null,{"handlers":["default"],"command":"PATH=$PATH:/usr/lib/nagios/plugins check_tcp -H 10.0.2.15 -p 12345","interval":5,"standalone":true}]}}}
...
{"timestamp":"2015-01-22T23:40:14.051101-0800","level":"warn","message":"loading config file","file":"/etc/sensu/conf.d/client.json"}
{"timestamp":"2015-01-22T23:40:14.051168-0800","level":"warn","message":"config file applied changes","file":"/etc/sensu/conf.d/client.json","changes":{"client":[null,{"name":"flapjack.example.org","address":"10.0.2.15","bind":"127.0.0.1","subscriptions":["sensu-test","foo"],"safe_mode":false,"keepalive":{}}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment