vmware / pyvmomi

VMware vSphere API Python Bindings
Apache License 2.0
2.21k stars 764 forks source link

triggeredAlarmState The interface fails to obtain alarm data #1066

Closed iidst closed 5 months ago

iidst commented 5 months ago

Describe the problem

I see three alarms of esxi hosts on vcenter 1 However, I use the triggeredAlarmstate interface of host-system to get only two, how do I get the third one, or use other interfaces 3

Code

content = si.RetrieveContent()
vc = content.rootFolder.childEntity
for datacenter in vc:
    for databases in datacenter.hostFolder.childEntity:
        for exsi in databases.host:
            print('-->' + exsi.name)
            for exsitriggered in exsi.triggeredAlarmState:
                print(exsitriggered)

Thanks...

DanielDraganov commented 5 months ago

Hello, This is not a pyVmomi issue but a misconfiguration or hardware/setup issue. Moving this to Discussions.