Let us consider the scenario of monitoring fan state for a Cisco Switch alone using vRealize Operations Manager 'Custom Groups' and 'Policies'.
In this example:
CISCO-ENVMON-MIB gives the current state of the fan present at OID 188.8.131.52.184.108.40.206.220.127.116.11.3 (ciscoEnvMonFanState)
For Cisco Switch with IP 10.107.119.1, there are three Fan components and you want to monitor Fan state for Cisco Switch 10.107.119.1 for any/all Fan modules
The possible states of a Fan module are normal, warning, critical, shutdown, not present, and not functioning
- Create an adapter instance for the range of devices that you want to monitor for Fan State. While creating the adapter instance, attach CISCO-ENVMON-MIB to adapter instance as shown in the following figure.
You have added a range of devices. For the credentials that match, the objects for each device are created under the adapter instance.
- Create a new custom group in 10.107.119.1.
. While creating a custom group, select the policy and add only the device(s) that have to be monitored. In this example, add
- Go to Collect Metrics and Policies. Search for 18.104.22.168.22.214.171.124.126.96.36.199.3 or ciscoEnvMonFanState and then set the state to Local for the OID as shown in the following figure.
- In the Apply Policy to Groups tab, select Switch-One-CustomGroup.
- In the Alerts page, click .
- Create a new alert definition with the name 'Fan Is Administratively down on Cisco device' and select the Base Object Type as 'CISCO-ENVMON-MIB.mib'.
- Create Symptoms for each fan module at index 1, 2 and 3 for status 'shutdown' at OID 188.8.131.52.184.108.40.206.220.127.116.11.3. Attach these symptoms to alert definition.
- Restrict the alert to the policy 'Switch-One-Policy' so that this alert will be generated only for the Cisco Switch with IP 10.107.119.1.
- Click Update.
After a few collection cycles, alert is generated only for Cisco Switch with IP 10.107.119.1 as shown in the following figure.