Last active
August 29, 2015 14:01
-
-
Save hiroakis/a22dcfa31977f760da49 to your computer and use it in GitHub Desktop.
sensu server example
This file contains 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
{ | |
"checks": { | |
"snmpd_proc": { | |
"handlers":["mailer"], | |
"command": "/etc/sensu/plugins/check-procs.rb -p snmpd -C 0 -W 1 ", | |
"subscribers": [ | |
"common" | |
], | |
"interval": 180, | |
"occurrences": 2, | |
"refresh": 180 | |
}, | |
"ntpd_proc": { | |
"handlers":["mailer"], | |
"command": "/etc/sensu/plugins/check-procs.rb -p ntpd -C 1 ", | |
"subscribers": [ | |
"common" | |
], | |
"interval": 180, | |
"occurrences": 2, | |
"refresh": 180 | |
}, | |
"sshd_proc": { | |
"handlers":["mailer"], | |
"command": "/etc/sensu/plugins/check-procs.rb -p sshd -C 1 ", | |
"subscribers": [ | |
"common" | |
], | |
"interval": 180, | |
"occurrences": 2, | |
"refresh": 180 | |
} | |
} | |
} |
This file contains 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
{ | |
"rabbitmq": { | |
"host": "localhost", | |
"port": 5671, | |
"vhost": "/sensu", | |
"user": "sensu", | |
"password": "password", | |
"ssl": { | |
"cert_chain_file": "/etc/sensu/ssl/cert.pem", | |
"private_key_file": "/etc/sensu/ssl/key.pem" | |
} | |
}, | |
"redis": { | |
"host": "localhost", | |
"port": 6379 | |
}, | |
"api": { | |
"host": "localhost", | |
"bind": "0.0.0.0", | |
"port": 4567 | |
}, | |
"dashboard": { | |
"bind": "0.0.0.0", | |
"port": 8080, | |
"user": "xxxxx", | |
"password": "xxxxx" | |
} | |
} |
This file contains 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
EMBEDDED_RUBY=true | |
LOG_DIR=/var/log/sensu | |
LOG_LEVEL=info | |
SERVICE_MAX_WAIT=10 |
This file contains 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
{ | |
"handlers": { | |
"mailer": { | |
"type": "pipe", | |
"command": "/etc/sensu/handlers/mailer.rb" | |
}, | |
"default": { | |
"type": "pipe", | |
"command": "/etc/sensu/handlers/mailer.rb" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment