Windows 2003 Service Profile 6.1-1

Description

Monitors several statistics for Windows 2003 servers via SNMP.

Profile Package

This package includes the following files:

  • Profile definitions: service-profile-snmp-win2k3.xml

  • Plugin scripts (installed on the GroundWork server): check_snmp, check_snmp_process_monitor.pl, check_snmp_storage.pl, and check_snmp_load.pl

Installation

GroundWork Monitor includes many monitoring profiles for a variety of devices, systems and applications. Some profiles are pre-imported on a new GroundWork installation and others are distributed with the product. The configuration tool is used to import updated profiles and profiles that require additional setup, services can also be imported, see Importing Profiles.

Services Configuration

For plugin details you can run the service help command from within the nagios container. For example: Get to the nagios container from the gw8 directory: docker-compose exec -u 1000 nagios bash, then to the libexec directory: cd /usr/local/nagios/libexec, and enter a service help command e.g., ./check_snmp --help to receive help content.

Service/Command Line/Plugin CommandCommand Parameters

This column lists the Service Definition name, Service Command name with arguments to be passed to the plugin, and the Plugin Command line which is the plugin script called by Nagios for the service.

Command parameters are in the configuration services section with the following names and default values.

  • snmp_alive

  • check_snmp_alive

  • $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.2.1.1.5.0 -l "sysName is " -C '$USER7$'

The total uptime.  This check is used as a service dependency for the rest of the checks.

  • snmp_uptime

  • check_snmp_uptime!800:!900:

  • $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.2.1.1.3.0 -l "sysUptime is " -C '$USER7$' -w $ARG1$ -c $ARG2$

Check for uptime as a dependency for SNMP access.

  • $USER7$: SNMP Community string

  • $ARG1$: Warning threshold, default is 800

  • $ARG2$: Critical threshold, default is 900

  • snmp_win2k3_cpu

  • check_snmp_win_load!90!100!stand

  • $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $USER7$ -2 -w $ARG1$ -c $ARG2$ -T $ARG3$

The CPU load numbers.

  • $ARG1$: Warning threshold, default value set to 90

  • $ARG2$: Critical threshold, default value set to 100

  • $ARG3$: The type of CPU load (see plugin help for details), default value is ’r;stand’ (standard MIB2) a single sample value

  • $USER7$: SNMP Community string

  • snmp_win2k3_disk_d

  • check_snmp_win_disk!D!80!90!pu

  • $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $USER7$ -2 -m '^[$ARG1$]' -w $ARG2$ -c $ARG3$ -T $ARG4$

The percentage of disk D used.

  • $USER7$: SNMP Community string

  • $ARG1$: The drive designation

  • $ARG2$: Warning threshold in percent, default value set to 80

  • $ARG3$: Critical threshold in percent, default value set to 90

  • $ARG4$: The type of data displayed, default is to calculate percent used (pu)

  • snmp_ win2k3_disk_c

  • check_snmp_win_disk!C!80!90!pu

  • $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $USER7$ -2 -m '^[$ARG1$]' -w $ARG2$ -c $ARG3$ -T $ARG4$

The percentage of disk C used.

  • $USER7$: SNMP Community string

  • $ARG1$: The drive designation

  • $ARG2$: Warning threshold in percent, default value set to 80

  • $ARG3$: Critical threshold in percent, default value set to 90

  • $ARG4$: The type of data displayed, default is to calculate percent used (pu)

  • snmp_win2k3_if_1

  • check_snmp_win_if!1

  • $USER1$/check_snmp -H $HOSTADDRESS$ -C $USER7$ -o "IF-MIB::ifInOctets.$ARG1$,IF-MIB::ifOutOctets.$ARG1$ ,IF-MIB::ifInDiscards.$ARG1$,IF-MIB::ifOutDiscards.$ARG1$,IF-MIB::ifInErrors.$ARG1$,IF-MIB::ifOutErrors.$ARG1$"

The total number of in/out octets, in/out discarded packets, and in/out errors recorded on this interface.

  • $USER7$: SNMP Community string

  • $ARG1$: Interface to query

  • snmp_win2k3_mem

  • check_snmp_win_mem!80!90!pu

  • $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $USER7$ -2 -m 'Virtual Memory' -w $ARG1$ -c $ARG2$ -T $ARG3$

The percentage of ”Virtual Memory” used.

  • $USER7$: SNMP Community string

  • $ARG1$: Warning threshold in percent

  • $ARG2$: Critical threshold in percent

  • $ARG3$: The type of data displayed, default is to calculate percent used (pu). Other options are percent free, megabytes used, megabytes free (pf, bu, bf ).

  • snmp_win2k3_proc_services

  • check_snmp_win_process!services.exe!0,0!0,0

  • [$USER1$/check_snmp_process_monitor.pl -H $HOSTADDRESS$ -C $USER7$ -e $ARG1$ -w $ARG2$ -c $ARG3$

Returns alert if named process is not running. Create a copy for each process, renaming and changing the first argument for each.

  • $ARG1$: The name of the process as it appears in the process table

  • $ARG2$: Warning threshold in notation 1:1 where the pair is a range, 1 where > is error, etc.

  • $ARG3$: Critical threshold in notation 1:1 where the pair is a range, 1 where > is error, etc.

Related Resources