|
Aim
In this example, we will retrieve the value and status of the voltage sensor on an IBM xSeries server running Linux. In order to do that, we will connect to the IBM Director Agent through the WBEM protocol (WBEM over HTTP) and request for some properties of the IBMPSG_VoltageSensor class.
Procedure
| 1. | Add a new “WBEM Request” class: |
| ▪ | Enter the credentials to connect to the IBM Director Agent. By default, the IBM Director Agent requires the root privileges unless it has been configured otherwise. |
| ▪ | Select HTTPS as the transport protocol and 5989 for the port (typically a WBEM “server” will respond with HTTP on port 5988 and with HTTPS on port 5989) |
| 2. | Add a new “WBEM Request” instance: |
| ▪ | Label: “Voltage Sensors” |
| ▪ | WBEM query: SELECT DeviceID, Status,CurrentReading,LowerThresholdNonCritical,UpperThresholdNonCritical,VoltageType FROM IBMPSG_VoltageSensor |
| 3. | Add a new String Search: |
| ▪ | Label: “Non-OK Voltage Sensors" |
| ▪ | CRITERION 1: Line does NOT contain "OK" in the 2nd column, case insensitive |
| ▪ | Column separator: Semicolon |
| ▪ | Alert threshold: ALARM if the “Count (LB)” parameter is greater than or equals to 1 |
Result
We will get an alert on the “Non-OK Voltage Sensors” object each time a voltage sensor goes out of its valid range.
|