TracNav
Internal Commands
CheckDisk...
CheckEventLog...
CheckSystem
CheckHelpers...
CheckTaskSched...
FileLogger...
NRPEListener...
NSClientListener...
SysTray...
CheckWMI...
RemoteConfiguration...
CheckExternalScripts...
LUAScript...
NSCAAgent...
Documentation...
Getting Started...
Information...
Sponsoring...
- ==External Scripts==
Donate...
CheckUpTime
This check checks the uptime of a server and if the time is less then the times given as arguments a state is returned.
| Option | Values | Description |
| MaxCrit | time | Maximum time the system is allowed to be up |
| MinCrit | time | Minimum time the system is allowed to be up |
| MaxWarn | time | Maximum time the system is allowed to be up |
| MinWarn | time | Minimum time the system is allowed to be up |
| nsclient | Flag to make the plug in run in NSClient compatibility mode | |
| ShowAll | Add this option to show details even if an error is not encountered. | |
| Alias | string | A string to use as alias for the values (default is uptime) |
Examples
Check that the system has been running for at least a day:
Sample Command:
CheckUpTime MinWarn=1d MinCrit=12h
WARNING: Client has uptime (19h) < warning (24h)Nagios Configuration:
define command {
command_name <<CheckUpTime>>
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckUpTime -a MinWarn=$ARG1$ MinCrit=$ARG2$
}
<<CheckUpTime>> 1d!12h
From Commandline (with NRPE):
check_nrpe -H IP -p 5666 -c CheckUpTime -a MinWarn=1d MinCrit=12h







