Let us consider the scenario of monitoring fan state for a Cisco Switch alone using VMware Aria Operations 'Custom Groups' and 'Policies'.

Prerequisites

In this example:

  • CISCO-ENVMON-MIB gives the current state of the fan present at OID 1.3.6.1.4.1.9.9.13.1.4.1.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

Procedure

  1. 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.

  2. Create a new custom group in Environment > Custom Groups . While creating a custom group, select the policy and add only the device(s) that have to be monitored. In this example, add 10.107.119.1.
  3. Go to Administration > Policies and click Collect Metrics and Policies. Search for 1.3.6.1.4.1.9.9.13.1.4.1.3 or ciscoEnvMonFanState and then set the state to Local for the OID as shown in the following figure.


  4. In the Apply Policy to Groups tab, select Switch-One-CustomGroup.
  5. In the Alerts page, click Configuration > Alert Definition.
  6. 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'.
  7. Create Symptoms for each fan module at index 1, 2 and 3 for status 'shutdown' at OID 1.3.6.1.4.1.9.9.13.1.4.1.3. Attach these symptoms to alert definition.
  8. 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.
  9. 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.