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.

OptionValuesDescription
MaxCrittimeMaximum time the system is allowed to be up
MinCrittimeMinimum time the system is allowed to be up
MaxWarntimeMaximum time the system is allowed to be up
MinWarntimeMinimum 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.
AliasstringA 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

Last modified 4 years ago Last modified on 09/14/09 07:03:59