Alarm actions (Email, SNMP, Script) are not sent for repeat trigger conditions - VMware vCenter
search cancel

Alarm actions (Email, SNMP, Script) are not sent for repeat trigger conditions - VMware vCenter

book

Article ID: 324327

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

When an alarm is triggered in vCenter repeatedly in short succession, a throttling mechanism kicks in, meant to prevent spamming the receiver.
This article provides a way for users to reduce this throttling by reducing the alarms reporting frequency.

Symptoms:

  • Alarms are configured for email alerts or SNMP traps when the alarm state changes.
  • Initial email alerts and SNMP traps are sent.
  • Alarms are not triggered multiple times within a short time period.
  • The 5-minute (300 seconds) throttling mechanism applies to all defined alarm actions, including script execution.

Environment

  • VMware vCenter 9.x
  • VMware vCenter Server 8.0.x
  • VMware vCenter Server 7.0.x

Cause

The default time period for an alarm is 5 minutes and cannot be changed via the Web Client.
This means, if an alert is triggered multiple times within a 5 minute window, it will only carry out its actions once. This also results in reset rule actions being ignored if the alarm is reset within 5 minutes from when it was first triggered.

Resolution

The default reporting frequency for an alarm is 5 minutes and cannot be changed via the Web Client.
This means, if an alert is triggered multiple times within a 5 minute window, it will only carry out its actions once. This also results in reset rule actions being ignored if the alarm is reset within 5 minutes from when it was first triggered.

This 5 minute frequency is expected behavior and serves as a way to prevent spamming alarm events which could lead to an increased size for the vCenter database, which might result in other problems reaching from performance issues for the vCenter services up to the vCenter Server service (vpxd) getting stopped due to insufficient space in the database.

To work around this design, the alarm reporting frequency can be set to 0 on a per-alarm basis, which effectively disables any throttling for the specific alarm and its configured actions.

Note: Editing and saving the alarm via vSphere Client after the workaround below will revert the reporting frequency to its default of 5 minutes again.

Apply the following steps to disable the throttling using VMware PowerCLI:

  1. Download the reset-alarm-reporting-frequency.ps1.gz archive attached to this article to a system with PowerCLI installed that has a network connection to the vCenter, and extract it.
  2. Open the script in a text edit and replace the vCenter IP address, login credentials and the alarm name in the following lines:
    $vcIP = '<VCENTER_IP>'
    $user = '<VCENTER_SSO_ADMIN_USERNAME>'
    $pass = '<VCENTER_SSO_ADMIN_PASSWORD>'
    $alarmName = "<ALARM_NAME>"
  3. Run the PowerCLI script.

Additional Information

繰り返しのトリガー条件に対して Eメール アラートと SNMP トラップが送信されない

Attachments

reset-alarm-reporting-frequency.ps1 get_app