SSH NMON

SSH NMON Profile

This profile monitors several statistics collected by NMON on monitored servers.

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
    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"
    ssh_nmon_diskio Check_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"
    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"
    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"
Profile Package

This package includes the following files:

Profile Definitions

  • service-profile-ssh-nmon.xml
  • perfconfig-ssh-nmon.xml

Plugins 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. 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.

The special event handler writenmonrrd.pl must be installed in the Nagios eventhandler directory. This eventhandler is needed to processes NMON version 11f information for inclusion in performance graphs. check_nmon_totals.pl depends on the proper functioning of nmon running in Data-Collect-Mode. start_nmon.pl is used to start the nmon daemon.

See Implementation Notes below.
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.

ssh_nmon_cpu

  • Nmon cpu utilization
  • $ARG1$ - Nmon parameter
  • $ARG2$ - Warning threshold.
  • $ARG3$ - Critical threshold.
  • $USER17$ - ssh user
  • $USER22$ - plugin library path

ssh_nmon_diskio

  • Nmon disk io
  • $ARG1$ - Nmon parameter
  • $ARG2$ - Warning threshold.
  • $ARG3$ - Critical threshold.
  • $USER17$ - ssh user
  • $USER22$ - plugin library path

ssh_nmon_memory

  • Nmon memory utilization
  • $ARG1$ - Nmon parameter
  • $ARG2$ - Warning threshold.
  • $ARG3$ - Critical threshold.
  • $USER17$ - ssh user
  • $USER22$ - plugin library path

ssh_nmon_paging

  • Nmon memory paging
  • $ARG1$ - Nmon parameter
  • $ARG2$ - Warning threshold.
  • $ARG3$ - Critical threshold.
  • $USER17$ - ssh user
  • $USER22$ - plugin library path
Performance Graphing Parameters

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

ssh_nmon_cpu

  • Graphs cpu utilization as derived by nmon
  • Nagios service description must contain the string "ssh_nmon_cpu".

ssh_nmon_diskio

  • Graphs disk io utilization as derived by nmon
  • Nagios service description must contain the string "ssh_nmon_diskio".

ssh_nmon_memory

  • Graphs memory utilization as derived by nmon
  • Nagios service description must contain the string "ssh_nmon_memory".

ssh_nmon_paging

  • Graphs paging statistics as derived by nmon
  • Nagios service description must contain the string "ssh_nmon_paging".
Implementation Notes

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

Example crontab for start_nmon.pl:

00 00 * * * /usr/local/groundwork/nagios/eventhandlers/start_nmon.pl 2>&1 >/dev/null
05 01 * * * find /usr/local/groundwork/nagios/eventhandlers/nmon/log \-mtime \+5 \-exec rm {} \\\;
Nmon Home Page [http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/nmon|http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/nmon]
Nmon Manual [http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/nmon+Manual|http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/nmon%2bManual]
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.