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:
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.
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:
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.$vcIP = '<VCENTER_IP>'
$user = '<VCENTER_SSO_ADMIN_USERNAME>'
$pass = '<VCENTER_SSO_ADMIN_PASSWORD>'
$alarmName = "<ALARM_NAME>"