Created
May 9, 2017 17:44
-
-
Save cwjohnston/7912e34174888d0cf275911e3a82601f to your computer and use it in GitHub Desktop.
this check definition should raise a validation error as the interval is not an integer
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
[root@localhost vagrant]# cat /etc/sensu/conf.d/check_fail.json | jq . | |
{ | |
"checks": { | |
"check-memory-percent": { | |
"command": "check-memory-percent.rb -w :::memory.warning|70::: -c :::memory.critical|80:::", | |
"subscribers": [ | |
"ALL", | |
" data-server", | |
"Gitlab", | |
"Kennedy", | |
"server-Trax-application-servers", | |
"server-database-servers", | |
"server-development", | |
"server-rails", | |
"server-script-servers", | |
"servermain-application-servers", | |
"server-main-worker", | |
"micro-services", | |
"micro-worker", | |
"phantom-servers", | |
"Plesk" | |
], | |
"interval": "60", | |
"handlers": "default" | |
} | |
} | |
} | |
[root@localhost vagrant]# chown -R sensu.sensu /etc/sensu/conf.d/ | |
[root@localhost vagrant]# sudo -u sensu /opt/sensu/bin/sensu-server -c /etc/sensu/config.json -d /etc/sensu/conf.d --validate_config | |
configuration is valid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment