HP Insight Cluster Management Utility manual Opt/cmu/bin/cmusubmitextendedmetrics -f datafile

Models: Insight Cluster Management Utility

1 191
Download 191 pages 59.43 Kb
Page 90
Image 90

data is received after this time interval expires, the GUI marks the extended metric data "invalid".

Data Type

A description of the format of the extended metric data. This is either numerical or string.

Measurement Method

This is either Instantaneous or MeanOverTime. Instantaneous means display the latest value. MeanOverTime displays the difference between the current value and the previous value divided by the time interval.

Max Value

This is used by the GUI to initialize the metric pies. If this value is exceeded, then the scale of the metric pie will adjust to the new maximum value.

Unit

The unit of the extended metric.

Command

This field must contain the keyword EXTENDED to mark this metric as an extended metric.

After you finish editing the ActionAndAlertsFile.txt file, you must restart HP Insight CMU monitoring and the GUI for the modifications to take effect.

2.Create a script to parse the extended metric data and write it to a file in the format expected by the /opt/cmu/bin/cmu_submit_extended_metrics command. The format is as follows:

A line starting with BEGIN_NODE followed by a space-separated list of one or more nodes.

A line or lines for <metric_name> <metric_value>, with one metric pair per line. These metric values apply to the list of nodes preceding them.

A new list of nodes can follow, starting with the keyword BEGIN_NODE.

The following is a simple example of the file format:

BEGIN_NODE n1 jobs 2 BEGIN_NODE n2 n3 n4 jobs 1 BEGIN_NODE n5 jobs 0

After the file is created, you can submit the data by invoking

/opt/cmu/bin/cmu_submit_extended_metrics -f <data_file>.

3.Create a script, or modify the script in step 2 above, to execute the contents of step 2 in a loop at the interval configured in step 1. For example, if the Time Multiple was set to 6, then the contents of a simple bash script for this step would be:

#!/bin/bash

while [1]; then <execute step=""> sleep 30

done

The script sleeps for 30 seconds because the Time Multiple(6) x CMU monitoring refresh interval(5) = 30. Note that if the actions in step 2 take two seconds to complete, then you may want to set the sleep value to 28.

90 Monitoring a cluster with HP Insight CMU

Page 90
Image 90
HP Insight Cluster Management Utility manual Opt/cmu/bin/cmusubmitextendedmetrics -f datafile