Usage: [-f ] -s|-o|-p|-r -w -c options: -w|--warning -c|--critical -f|--file provide an alternate file path to status.dat Examples: To check host latency: -o -w 200 -c 500 To check service latency: -s -w 200 -c 500 Attention: warning and critical always checks max_latency. To count checked services: --servicecount -w 2000 -c 2500 To count checked hosts: --hostcount -w 900 -c 1000

This plugin checks nagios performance data by parsing the nagios status.dat file, e.g. in /usr/local/nagios/var/status.dat.

Because it depends on being able to read the status.dat file, it can only run locally on the Nagios server itself.

Usage: [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] [-o <tz-offset>] -w <warn level> -c <crit level> [-f] [-t <timeout>] [-V]


-v, --verbose
      print extra debugging information

-h, --help
      print this help message

-s, --service_latency
      checks the service with the max execution latency

-o, --host_latency
      checks the host check with the max execution latency

-p, --hostcount
      check number of monitored hosts

-r, --servicecount
      check number of monitored services

-w, --warn=INTEGER
      warning threshold

-c, --crit=INTEGER
      critical threshold

-f, --file
      provide an alternate file path to status.dat

Plugin Definition Example:

Below is an example of the plugin definition in the Nagios command.cfg file.

# Check the # of monitored hosts w.
define command{
  command_name check_nagiosconf
  command_line $USER1$/ -w $ARG1$ -c $ARG2$ -p

Plugin Usage Example:

The plugin with its most basic use, counting the number of monitored hosts

susie: ~ # cd /srv/app/nagios/libexec
# ./ -w 50 -c 100 -p
OK: 3 Nagios host checks|count=3 

The plugin with -o, checking the max execution latency for host checks.

# ./ -w 50 -c 100 -o
OK: max latency: =0.000
avg latency: 0.000
min latency: =0.000|max=0.000s;50;100 avg=0.000s;50;100 min=0.000s;50;100

Download: (8810 Bytes)


More Information: