Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cwjohnston/7912e34174888d0cf275911e3a82601f to your computer and use it in GitHub Desktop.
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
[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