check_uptime
This script checks uptime and optionally verifies if the uptime is below MINIMUM or above MAXIMUM uptime treshholds
Usage:
./check_uptime [-c OPTION]|[-w OPTION] [-C OPTION]|[-W OPTION] [ -V ]
Options:
Flag | Description |
---|---|
-h | Help |
-c | CRITICAL MIN uptime (minutes) |
-w | WARNING MIN uptime (minutes) |
-C | CRITICAL MAX uptime (minutes) |
-W | WARNING MAX uptime (minutes) |
-V | Version |
Typical usage would be (assuming you run it more often then once every 15 minutes):
Define Command
command[check_uptime]=/usr/local/nagios/libexec/check_uptime -w 15