
4.2.5
Modify Nagios Plug-in Threshold
Prerequisites
This procedure requires root privileges.
About this task
Each Cray plugin requires thresholds for the metrics they monitor. All plugins require a
warning
and
critical
level, set via parameters. Some require a third parameter. These plugins include
cray_check_disk
,
cray_check_disk_aggr
, and
cray_check_network
. Executing the plugin with the
-h
option will list the
available options and the arguments to pass in for these options. For example,
./cray_check_disk -h
. A
brief description of what each plugin measures will also be available via the
-h
option. The plugins are located
in
/usr/local/nagios/libexec
on either the SMW or one of the nodes. The warning and critical levels are
digits (up to 4 decimal points) between 0.0 and 1.0, which represent the percentage of the metric.
The following plugins are configurable on the SMW at the default path
/usr/local/nagios/libexec
:
●
cray_check_cpu_aggr
●
cray_check_disk
●
cray_check_disk_aggr
●
cray_check_memory_aggr
●
cray_check_network
●
cray_check_node_state
.
The following plugins are configurable on each of the nodes at the default path
(
/usr/local/nagios/libexec
):
●
cray_check_aries
(only available on compute nodes)
●
cray_check_cpu
●
cray_check_disk
●
cray_check_memory
For details on configuring custom services and hosts please refer to Nagios documentation.
Procedure
1. Log on to the SMW as root.
#
ssh root@machine-smw
2. Stop the Nagios service if it is running.
#
service nagios stop
3. Switch to the
/usr/local/nagios/etc/objects
directory.
4. Modify the
localhost.cfg
file as needed.
System Monitoring
S3016
76