Last active
September 27, 2020 17:56
-
-
Save mtchavez/e367db8b69aeba363d21 to your computer and use it in GitHub Desktop.
Consul Nagios Example Checks
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
{ | |
"check": { | |
"id": "check-disk", | |
"name": "check-disk", | |
"script": "/usr/lib/nagios/plugins/check_disk -w 30% -c 5%", | |
"interval": "1m" | |
} | |
} |
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
{ | |
"check": { | |
"id": "check-load", | |
"name": "check-load", | |
"script": "/usr/lib/nagios/plugins/check_load -w 1,2,3 -c 2,3,4", | |
"interval": "1m" | |
} | |
} |
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
{ | |
"check": { | |
"id": "check-ssh", | |
"name": "check-ssh", | |
"script": "/usr/lib/nagios/plugins/check_ssh -t 10 -p 22 $(/sbin/ifconfig eth0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}')", | |
"interval": "1m" | |
} | |
} |
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
{ | |
"check": { | |
"id": "check-users", | |
"name": "check-users", | |
"script": "/usr/lib/nagios/plugins/check_users -w 3 -c 4", | |
"interval": "1m" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isn't this cheating :D just kidding thanks for the inspiration