NMON Service Profile (via SSH)

Description

Monitors several statistics collected by NMON on monitored servers. Monitoring scripts are installed on the remote server and called from the GroundWork server using the SSH protocol.  Please reference the SSH Monitoring document when using this profile.

Profile Package

This package includes the following files:

  • Profile definition: service-profile-ssh-nmon.xml

  • Plugin scripts (installed on the GroundWork server): check_nmon_totals.pl

  • Event Handlers: start_nmon.pl, writenmonrrd.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.

If you are communicating to a remote host that is behind a firewall, make sure the SSH port 22 is allowed to access the remote host.

Path parameters in check_nmon_totals.pl and start_nmon.pl must match exactly.

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.

  • ssh_nmon_cpu

  • check_by_ssh_nmon!cpu01!92!98

  • $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_nmon_totals.pl -k $ARG1$ -w $ARG2$ -c $ARG3$ -p"

nmon CPU utilization

  • $USER17$: SSH user

  • $USER22$: Plugin library path

  • $ARG1$: nmon parameter

  • $ARG2$: Warning threshold, default is 92

  • $ARG3$: Critical threshold, default is 98

  • ssh_nmon_diskio

  • heck_by_ssh_nmon!diskio!50!70

  • $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_nmon_totals.pl -k $ARG1$ -w $ARG2$ -c $ARG3$ -p"

nmon Disk I/O

  • $USER17$: SSH user

  • $USER22$: Plugin library path

  • $ARG1$: nmon parameter

  • $ARG2$: Warning threshold, default is 50

  • $ARG3$: Critical threshold, default is 70

  • ssh_nmon_memory

  • check_by_ssh_nmon!memory!8!4

  • $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_nmon_totals.pl -k $ARG1$ -w $ARG2$ -c $ARG3$ -p"

nmon memory utilization

  • $USER17$: SSH user

  • $USER22$: Plugin library path

  • $ARG1$: nmon parameter

  • $ARG2$: Warning threshold, default is 8

  • $ARG3$: Critical threshold, default is 4

  • ssh_nmon_paging

  • check_by_ssh_nmon!paging!20!40

  • $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_nmon_totals.pl -k $ARG1$ -w $ARG2$ -c $ARG3$ -p"

nmon memory paging

  • $USER17$: SSH user

  • $USER22$: Plugin library path

  • $ARG1$: nmon parameter

  • $ARG2$: Warning threshold, default is 20

  • $ARG3$: Critical threshold, default is 40

Related Resources