SNMP HPUX Server Profile
This profile monitors several statistics for HPUX (HP UNIX system) 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_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$ 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$ 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$ 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$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$" snmp check_snmp_alive $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.2.1.1.3.0 -l "Uptime 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$
Profile Package
This package includes the following files:
Profile Definitions
- service-profile-snmp-hpux.xml
- perfconfig-snmp-hpux.xml
Plugins Scripts 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. 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_hpux_load
- The CPU load numbers.
- $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 (see plugin help for details). Value is ’r;hpux’
- $USER7$ - SNMP Community string.
snmp_hpux_mem_8GB
- The free and total memory on the system (measure is by Bytes)
- $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
- $USER7$ - SNMP Community string.
snmp_hpux_procs
- The number of running processes.
- $ARG1$ - The Object Identifier (OID) to query
- $ARG2$ - Units to display after the number.
- $ARG3$ - Warning threshold.
- $ARG4$ - Critical threshold.
- $USER7$ - SNMP Community string.
snmp_hpux_disk_root
- The percentage of the disk used
- $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)
- $USER7$ - SNMP Community string.
snmp_hpux_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
snmp
- Check for uptime as a dependency for snmp accesses.
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_hpux_disk_
- Graphs the percentage of disk space used.
- The Nagios service description must contain the string snmp_hpux_disk_.
snmp_hpux_load
- Graphs the average load values.
- The Nagios service description must contain the string snmp_hpux_load.
snmp_hpux_mem
- Graphs the amount of memory free.
- The Nagios service description must contain the string snmp_hpux_mem.
snmp_hpux_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_hpux_if_.
snmp_hpux_procs
- Graphs the number of system processes running
- The Nagios service description must contain the string snmp_hpux_procs
Implementation Notes
None.