Configure Email Notifications for Hosts in Maintenance Mode for Over 14 Days
search cancel

Configure Email Notifications for Hosts in Maintenance Mode for Over 14 Days

book

Article ID: 428295

calendar_today

Updated On:

Products

VCF Operations VMware Aria Operations (formerly vRealize Operations) 8.x

Issue/Introduction

There may be a need for an automated notification mechanism to detect ESXi hosts or nodes that remain in maintenance mode for an extended duration (for example, longer than two weeks).

In VMware Aria Operations, there is no direct "days in maintenance" metric. Instead, the "Maintenance State" property must be monitored using Wait Cycles to track the duration of the state.

Environment

VCF Operations 9.x

Aria Operations 8.18.x

Cause

Aria Operations treats Maintenance Mode as a static property (System|Maintenance State). To alert on the duration of a static property, the system must count consecutive collection cycles where the condition remains true.

 

Resolution

Step 1: Create the Symptom Definition

The symptom definition handles the logic for the 2-week timer.

    1. Navigate to Configure > Alerts > Symptom Definitions.

    2. Click Add and select Object Type: Host System.

    3. Under Property, search for and select: System|Maintenance State.

    4. Set the Condition to Is Equal to and choose In Maintenance (Value: 1).

    5. Set the Wait Cycle to 4032.

      • Calculation: 14 days = 20,160 minutes. At a 5-minute collection interval, $20,160 \div 5 = 4,032$ cycles.

    6. Assign a Severity (e.g., Warning) and name it: Host in Maintenance > 14 Days.

Step 2: Create the Alert Definition

    1. Go to Configure > Alerts > Alert Definitions.

    2. Click Add and name the alert (e.g., Stale Maintenance Mode Alert).

    3. Set Base Object Type to Host System.

    4. Drag the symptom Host in Maintenance > 14 Days into the Symptoms workspace.

    5. In the Policies step, ensure the alert is enabled for the active policy.

Step 3: Configure the Notification Rule

    1. Go to Configure > Alerts > Notifications.

    2. Click Add.

    3. Select Method: Email (Requires pre-configured SMTP in Outbound Settings).

    4. Under Alert Definition, select Stale Maintenance Mode Alert.

    5. Add recipients and save.

Additional Information

Additionally, You may not be able to see created or available Notification Rules in Aria Ops UI. Corruption in existing Notification Rules can prevent the Notification list from loading in the UI, requiring manual cleanup.

If the Notification list fails to display in the UI due to a corrupt rule:

  1. Identify the problematic rule (often the most recently modified or one with null values in the database).

  2. Manually delete the corrupt Notification Rule to restore UI functionality.

Manually delete notification rules in Aria Operations