Skip to content

Instantly share code, notes, and snippets.

@hiroakis
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroakis/a22dcfa31977f760da49 to your computer and use it in GitHub Desktop.
Save hiroakis/a22dcfa31977f760da49 to your computer and use it in GitHub Desktop.
sensu server example
{
"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
}
}
}
{
"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"
}
}
EMBEDDED_RUBY=true
LOG_DIR=/var/log/sensu
LOG_LEVEL=info
SERVICE_MAX_WAIT=10
{
"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