1 archiving sensor metrics on an individual basis – HP Insight Control Software for Linux User Manual
Page 193
21 Using the command line to view managed system status
Insight Control for Linux provides commands that you can run on the CMS to determine the
status of
s.
This chapter addresses the following topics:
•
“Archiving sensor metrics on an individual basis” (page 193)
•
“Displaying usage, statistics, and metrics with the shownode command” (page 194)
•
“Displaying environmental data” (page 199)
•
“Reporting usage information and host and service status” (page 199)
21.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 sensor metrics are
always individually archived.
shows the consolidation of sensor information.
Example 21-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
IMPORTANT:
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 the sensors Insight Control for Linux collects.
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 other managed
systems.
provides an example of expanded sensor metrics.
21.1 Archiving sensor metrics on an individual basis
193