HP Insight Control for Linux 6.0 User Guide

16 Using the command line to view managed system status
HP Insight Control for Linux provides a set of commands that you can run on the CMS to
determine the status of one or more managed systems.
This chapter addresses the following topics:
Archiving sensor metrics on an individual basis” (page 183)
“Displaying usage, statistics, and metrics with the shownode command” (page 184)
“Displaying environmental data” (page 189)
“Reporting usage information and host and service status” (page 189)
16.1 Archiving sensor metrics on an individual basis
By default, sensor metrics are archived individually as defined by the SENSORPRINT variables
in the nagios_vars.ini file. You can override this default behavior so that a set of sensor
metrics will always be individually archived. Sensor information is consolidated as shown in
Example 16-1.
Example 16-1 Sensor consolidation behavior
# shownode metrics sensors icelx1
Timestamp |Node_Id |Name |Value |Description
---------------------------------------------------------------------------
date_and_time |icelx1 |Sensor count |12 |Sensors within threshold; ok
If you want to archive additional sensor metrics, locate the SENSORPRINT variables in the
SensorConfiguration section in the /opt/hptc/nagios/etc/nagios_vars.ini file.
Set the variable(s) to valid regular expressions that match the names of sensors to be archived.
Append each variable name with an incremental number. For example, SENSORPRINT0,
SENSORPRINT1, and SENSORPRINT2:
SENSORPRINT0 = CPU[0-9]+ TEMP
SENSORPRINT1 = SYS TEMP
SENSORPRINT2 = Temp[1-9]+
You can also individually archive all sensors by setting the FULLSENSORLISTING variable to
1. Be aware that this increases storage size but provides the most history. This variable overrides
any SENSORPRINT expressions. For example:
FULLSENSORLISTING = 1
NOTE: Any time you modify the /opt/hptc/nagios/etc/nagios_vars.ini file, you
must run the following command to propagate the changes to all other managed systems:
# /opt/hptc/nagios/libexec/check_nagios_vars --rebuild --update
If you are uncertain of the names of the sensors for your platform(s), enable
FULLSENSORLISTING, run the shownode metrics sensors command, and then wait 15
minutes to display all the sensors being collected by HP Insight Control for Linux.
From this listing, create one or more regular expressions to capture the sensors you want to
always individually archive.
Comment out the FULLSENSORLISTING variable or set it back to zero, and then set the
SENSORPRINT variables as appropriate. Remember to propagate the changes to all other managed
systems.
Example 16-2 provides an example of expanded sensor metrics.
16.1 Archiving sensor metrics on an individual basis 183