I have a fun issue. I am using SNMP to send vCenter alerts to a event gather system in order to ticket on issues. The gather system has the vCenter MIB's loaded. All events are coming in as vpxAlarms with details. The unique field in the details is vmwVpxdObjValue. This seems to be set to the name of the Alarm unless it's a VMware built in alarm. They have unique names for example:
I create a alarm called joetest then the field for vmwVpxdObjValue = joetest - event info
On the built in alarm alarm.HostConnectionStateAlarm it comes in as : vmwVpxdObjValue = alarm.HostConnectionStateAlarm
I am trying to figure how using powerCLI to get that value on VMware built in alarms. Using powercli I try to get everything about a alarm with the follow code:
$bob = Get-AlarmDefinition -Name "Host connection and power state"
$bob | fl
Does not produce the vmwVpxdObjValue it does produce the alarm-### which seems to be unique per vCenter.
Using the MOB I can look into the alarm-### info using the following methods:
But the entry for alarm.HostConnectionStateAlarm is no where to be found...
What am I missing on getting this value?
Any help is very welcome.
I did not 100% solve this issue. I did find a work around I posted the output on my blog. Hope it helps someone else.