Created
November 2, 2012 22:47
-
-
Save mago0/4004828 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"version": "0.9.6-4", | |
"rabbitmq": { | |
"host": "localhost", | |
"port": 5672, | |
"vhost": "/sensu", | |
"user": "sensu", | |
"password": "blah", | |
"heartbeat": 20 | |
}, | |
"redis": { | |
"host": "localhost", | |
"port": 6379 | |
}, | |
"api": { | |
"host": "localhost", | |
"port": 4567 | |
}, | |
"dashboard": { | |
"host": "0.0.0.0", | |
"port": 8080, | |
"user": "admin", | |
"password": "1q2w3e" | |
}, | |
"client": { | |
"name": "monitor1", | |
"address": "10.0.0.196", | |
"subscriptions": [ | |
"base", | |
"monitoring_server" | |
] | |
}, | |
"handlers": { | |
"debug": { | |
"command": "/etc/sensu/handlers/debug.rb", | |
"type": "pipe" | |
}, | |
"mailer": { | |
"command": "/etc/sensu/handlers/notification/mailer.rb", | |
"type": "pipe" | |
}, | |
"default": { | |
"handlers": [ | |
"debug", | |
"mailer" | |
], | |
"type": "set" | |
} | |
}, | |
"checks": { | |
"chef_client": { | |
"custom_attribute_here": "value", | |
"command": "/etc/sensu/plugins/check-procs.rb -p chef-client -W 1 -w 2 -c 3", | |
"interval": 60, | |
"notification": "Chef client daemon is not running.", | |
"subscribers": [ | |
"base" | |
], | |
"handlers": [ | |
"default" | |
] | |
}, | |
"disk_usage": { | |
"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" | |
], | |
"handlers": [ | |
"default" | |
] | |
} | |
} | |
} | |
Logs: | |
Server: | |
{"timestamp":"2012-11-02T22:11:57.125030+0000","message":"received signal","signal":"TERM","level":"warn"} | |
{"timestamp":"2012-11-02T22:11:57.125324+0000","message":"stopping","level":"warn"} | |
{"timestamp":"2012-11-02T22:11:57.125494+0000","message":"unsubscribing from keepalives","level":"warn"} | |
Client: | |
{"timestamp":"2012-11-02T22:46:18.971259+0000","message":"received signal","signal":"TERM","level":"warn"} | |
{"timestamp":"2012-11-02T22:46:18.971459+0000","message":"stopping","level":"warn"} | |
{"timestamp":"2012-11-02T22:46:18.971610+0000","message":"unsubscribing from client subscriptions","level":"warn"} | |
{"timestamp":"2012-11-02T22:46:18.983882+0000","message":"completing checks in progress","checks_in_progress":[],"level":"info"} | |
{"timestamp":"2012-11-02T22:46:18.984213+0000","message":"stopping reactor","level":"warn"} | |
CONNECTION_FORCED - broker forced connection closure with reason 'shutdown' in to_i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment