Created
February 11, 2022 21:11
-
-
Save ryanvgates/2baa9d7b934955b2e5cc69051275fad6 to your computer and use it in GitHub Desktop.
Sensu Check Hook Example
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
{ | |
"checks": | |
{ | |
"check_disk": | |
{ | |
"command": "/etc/sensu/plugins/check-disk.rb -w 3 -c 5 -a 1000 -l //", | |
"handlers": | |
[ | |
"default", | |
"mailer_detailed" | |
], | |
"standalone": true, | |
"interval": 6, | |
"hooks": | |
{ | |
"non-zero": | |
{ | |
"command": "df -h", | |
"timeout": 10 | |
} | |
}, | |
"escalation": "default", | |
"occurrences": 1, | |
"service": "Disk space > 3%" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment