...
You see "Disk Exhaustion" alarms being repeatedly triggered, along with flapping status change from 'Green' to 'Yellow' and 'Yellow' to 'Green' at the same time.In /var/log/vmware/applmgmt/StatsMonitor.log , you may see the below entries: 2022-03-21T07:41:16.189+09:00 info StatsMonitor[01656] [Originator@6876 sub=StatsMonitor] eventMessage Size: 2090 Batch Id: 32022-03-21T07:41:16.189+09:00 info StatsMonitor[01656] [Originator@6876 sub=StatsMonitor] eventMessage: [{"event_id": "vim.event.ResourceExhaustionStatusChangedEvent","args":{"resourceName":"storage_util_filesystem_seat","oldStatus":"yellow","newStatus":"green","reason":" "}},{"event_id": "vim.event.ResourceExhaustionStatusChangedEvent","args":{"resourceName":"storage_util_filesystem_db","oldStatus":"yellow","newStatus":"green","reason":" "}},{"event_id": "vim.event.ResourceExhaustionStatusChangedEvent","args":{"resourceName":"storage_util_filesystem_vtsdb","oldStatus":"yellow","newStatus":"green","reason":" "}}]2022-03-21T07:41:16.189+09:00 info StatsMonitor[01656] [Originator@6876 sub=StatsMonitor] Post event command and args are ready, invoking ...2022-03-21T07:41:16.690+09:00 info StatsMonitor[01656] [Originator@6876 sub=StatsMonitor] Post alarm failed: Event vim.event.ResourceExhaustionStatusChangedEvent successfully posted to http://localhost:8085/sdk--> Event vim.event.ResourceExhaustionStatusChangedEvent successfully posted to http://localhost:8085/sdk--> Event vim.event.ResourceExhaustionStatusChangedEvent successfully posted to http://localhost:8085/sdk--> Event vim.event.ResourceExhaustionStatusChangedEvent successfully posted to http://localhost:8085/sdk--> Failed to post event vim.event.ResourceExhaustionStatusChangedEvent to http://localhost:8085/sdk. Err: unrecognized vSphere resource name "storage_util_filesystem_lifecycle".-->--> Event vim.event.ResourceExhaustionStatusChangedEvent successfully posted to http://localhost:8085/sdk--> Failed to post event vim.event.ResourceExhaustionStatusChangedEvent to http://localhost:8085/sdk. Err: unrecognized vSphere resource name "storage_util_filesystem_vtsdb".--> /bin/statsmonitor_alarm_dispatcher.py:34: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses--> import imp--> Warn: Events were sent to only 0 vpxd conns.-->2022-03-21T07:41:16.690+09:00 info StatsMonitor[01656] [Originator@6876 sub=StatsMonitor] Exit post event ...
Some alarm definitions are missing from /bin/statsmonitor_alarm_dispatcher.py , which prevents StatsMonitor from posting vim.event.ResourceExhaustionStatusChangedEvent successfully.
This issue is resolved in vCenter Server 7.0 U3. You can download from Customer Connect Downloads page.
To workaround this issue, please replace the statsmonitor_alarm_dispatcher.py on the VCSA with the attached file on this article: Download the attached statsmonitor_alarm_dispatcher.pyBackup/rename the current statsmonitor_alarm_dispatcher.py file through the below steps: Connect to the VCSA through SSHRun the below command to navigate to /bin # cd /bin Run the below command to backup and rename the current statsmonitor_alarm_dispatcher.py file. # mv statsmonitor_alarm_dispatcher.py statsmonitor_alarm_dispatcher.py.bak Using WINSCP, copy the statsmonitor_alarm_dispatcher.py to the VCSA virtual machine in the /bin directory. Note: If you got the below error while connecting to the VCSA, see Error when uploading files to vCenter Server Appliance using WinSCP (2107727) Host is not communicating for more than 15 seconds. If the problem repeats, try turning off 'Optimize connection buffer size'