StatelessAlarmTriggered events shown as 'Error' in Web Client/H5
search cancel

StatelessAlarmTriggered events shown as 'Error' in Web Client/H5

book

Article ID: 315267

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
When StatelessAlarmtriggered events are triggered in vCenter it displays as error in Webclient/H5 due to following reasons:
  • StatelessAlarmtriggered eventID (com.vmware.vc.StatelessAlarmTriggeredEvent) is absent in estension.xml file for which backend does not return the description for the event.
  • If event description is absent by default it will show 'Error' in Web Client/H5.


Cause

As statelessAlarmtriggered eventID is absent in extension.xml file for which backend does not return description for the event and if event description is absent, by default, it will show 'error' in Web Client and this is the existing logic which is appearing in vCenter versions prior 7.0 .
vSphere Java SDK sample EventHistoryCollectorMonitor.java file which captures the event history does not have access to events meta information. Hence, it interprets "null" as "unknown".

Resolution



Workaround:
To workaround the issue:
  • Replace the extension.xml which is attached in the KB (See Attachments section).
  • StatelessAlarmtriggered eventID is added in attached extension.xml file and backend returns description for the event and it shows as 'information' in UI.
In Windows
1. Replace extension.xml in vc
    cd C:\ProgramData\VMware\vCenterServer\cfg\vmware-vpx\extensions\VirtualCenter
2. Please restart the vpxd service
    service-control --stop vpxd 
    service-control --start vpxd

In vcsa
1. Replace extension.xml in vcsa
    vim /etc/vmware-vpx/extensions/VirtualCenter/extension.xml
2. Please restart the vpxd service
    service-control --restart vpxd

Note: The issue affects vCenter versions prior 7.0 and fixed in 7.0

Attachments

extension get_app