SNMP Windows 2003

SNMP Windows Server Profile

This profile monitors several statistics for Windows 2003 servers via SNMP.

Services Configuration
  • Service - Definitions in Monarch are stored under this name.
  • Command Line - Service command name with arguments to be passed to the plugin.
  • Plugin Command Line - Plugin script called by Nagios for this Service.
    Command lines displayed below are intended to be single line commands.
    Service Command Line Plugin Command Line
    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$'
    snmp_uptime check_snmp_uptime!1800:!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$
    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$
    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$
    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$
    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$"
    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$
    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$
Profile Package

This package includes the following files:

Profile Definitions

  • service-profile-snmp-win2k3.xml
  • perfconfig-snmp-win2k3.xml

Plugins Scripts on the GroundWork Server

  • check_snmp
  • check_snmp_process_monitor.pl
  • check_snmp_storage.pl
  • check_snmp_load.pl
Installation

GroundWork Monitor includes many monitoring profiles for a variety of devices, systems and applications. Profiles already imported on a new GroundWork installation include Service Ping, SNMP Network, and SSH UNIX. The GroundWork Monitor Configuration tool is used to import updated Profiles and Profiles that require additional setup; the Profile XML file and its companion Performance Configuration definition file. Services can also be imported in addition to Service Profiles in the Profile Importer. The import process is documented under GROUNDWORK PROFILES > How to import profiles.

Implementation

This section contains detail settings used by this Profile. These parameters can be altered with the Configuration tool.

Command Parameters

Command parameters are in the Configuration Services section with the following names and default values.

snmp_win2k3_cpu

  • 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

  • The percentage of disk D used.
  • $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. The default is to calculate percent used (pu).
  • $USER7$ - SNMP Community string.

snmp_win2k3_disk_c

  • The percentage of disk C used.
  • $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. The default is to calculate percent used (pu).
  • $USER7$ - SNMP Community string.

snmp_win2k3_if_1

  • The total number of in/out octets, in/out discarded packets, and in/out errors recorded on this interface.
  • $ARG1$ - Interface to query
  • $USER7$ - SNMP Community string

snmp_win2k3_mem

  • The percentage of ”Virtual Memory” used.
  • $ARG1$ - Warning threshold in percent.
  • $ARG2$ - Critical threshold in percent.
  • $ARG3$ - The type of data displayed. The default is to calculate percent used (pu). Other options are percent free, megabytes used, megabytes free (pf, bu, bf )
  • $USER7$ - SNMP Community string.

snmp_win2k3_proc_services

  • 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

snmp_alive

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

The following parameters are used to generate performance charts. These parameters are set using the Configuration>Performance tool in GroundWork Monitor.

snmp_win2k3_disk

  • Graphs the percentage of disk space used on disk (c, d, etc)
  • The Nagios service description must contain the string snmp_win2k3_disk

snmp_win2k3_cpu

  • Graphs the average load value for the cpu busy.
  • The Nagios service description must contain the string snmp_win2k3_cpu.

snmp_win2k3_mem

  • Graphs the amount of memory used.
  • The Nagios service description must contain the string snmp_win2k3_mem.

snmp_win2k3_if

  • Graphs the traffic, errors, and discard rate for input and output on the network interface (index value 1, 2, 3 etc)
  • The Nagios service description must contain the string snmp_win2k3_if.

The Performance Configuration database has been set up for some of the service checks to record line graphs for as many data sources as are returned, from 1 to 4.  The RRD files will be recorded in /usr/local/groundwork/rrd with the Host name prepended to the service check name. The graphed elements may be viewed in the Performance Application and in the Status Object under Status Views and Dashboards, for the monitored Hosts.  For each RRD the values are set as detailed here; if changes are desirable then the Performance Configuration Tool should be used to modify the values prior to data collection and RRD creation. Alternatively, make changes, then delete the RRD files and Host_Service Table entries and new files will be created automatically:

  • The step value is 600 matching the Normal Check Interval of 10 minutes (600 seconds).  Change this to match if you change Normal Check Interval
  • The Heartbeat is 1800. Change this to an appropriate value if you change the step value.
  • The number of Primary Data Points in the first Averaging function is 8640 allowing 60 days of directly recorded data
  • The number of Consolidated Data Points is 9480 with an averaging function of 12 allowing 790 days of consolidated data points, e.g.12 Primary Data Points averaged together into one CDP.
  • All the values are recorded as type GAUGE.
Implementation Notes

None.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.