SNMP HPUX

Description

Monitors several statistics for HPUX (HP Unix system) servers via SNMP.

Profile Package

This package includes the following files:

  • Profile definition: service_profile_snmp_hpux.xml

  • Plugin scripts (installed on the GroundWork server): check_snmp, check_snmp_load.pl, check_snmp_storage.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$'

Check status of remote machines and obtain system information via SNMP.No arguments.

  • snmp_hpux_load

  • check_snmp_unix_load!90,92,95!100,100,100!hpux

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

The CPU load numbers.

  • $USER7$: SNMP Community string

  • $ARG1$: Warning thresholds for 1, 5 and 15 minute averages (triplet)

  • $ARG2$: Critical thresholds for 1, 5, and 15 minute averages (triplet)

  • $ARG3$: The type of CPU load, value is ’r;hpux’

  • snmp_hpux_mem_8GB

  • check_snmp_unix!1.3.6.1.4.1.11.2.3.1.1.7.0,1.3.

    6.1.4.1.11.2.3.1.1.8.0!Free,Total!100000:8000000,1:0!50000:8000000,1:0

  • $USER1$/check_snmp -H $HOSTADDRESS$ -o "$ARG1$" -u "$ARG2$" -C '$USER7$' -w $ARG3$ -c $ARG4$

The free and total memory on the system (measure is by Bytes)

  • $USER7$: SNMP Community string

  • $ARG1$: The Object Identifiers (OID) to query. By default print the available (free) and total physical memory.

  • $ARG2$: Labels to display in the status line (”r;free”, ”r;total”)

  • $ARG3$: Warning thresholds, paired for Free and Total. Range, compare, less than, greater than syntax

  • $ARG4$: Critical thresholds, paired for Free and Total

  • snmp_hpux_procs

  • check_snmp_unix!1.3.6.1.4.1.11.2.3.1.4.1.0!Processes!200!300

  • $USER1$/check_snmp -H $HOSTADDRESS$ -o "$ARG1$" -u "$ARG2$" -C '$USER7$' -w $ARG3$ -c $ARG4$

The number of running processes

  • $USER7$: SNMP Community string

  • $ARG1$: The Object Identifier (OID) to query

  • $ARG2$: Units to display after the number

  • $ARG3$: Warning threshold

  • $ARG4$: Critical threshold

  • snmp_hpux_disk_root

  • check_snmp_unix_disk!'/$'!80!90!pu

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

The percentage of the disk used

  • $USER7$: SNMP Community string

  • $ARG1$: Regular Expression reflecting the name of the (Storage) Disk Resource

  • $ARG2$: Warning threshold

  • $ARG3$: Critical threshold

  • $ARG4$: Identifier for type of return (pu percent used, pf percent free, bu Bytes used, bf Bytes free)

  • snmp_hpux_if_1

  • check_snmp_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.

  • $ARG1$: Interface to query

  • snmp

  • check_snmp_alive

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

Check for uptime as a dependency for SNMP access.

  • $USER7$: SNMP Community string

  • 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$

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

Related Resources