Sending vCenter Alarms via SNMP Challenges with hidden event names

I have been working with vSphere to get internally generated Alarms an SNMP Trap for ticket generation.   This process seemed simple on the surface but proved quite challenging.   The high level steps are as follows:

  • Choose which vCenter Alarms need to be ticketed
  • Configure the Alarms to send SNMP events to SNMP trap
  • Download the vSphere MIB and install in SNMP Trap
  • Configure the Alarm actions on SNMP Trap
  • Tickets get opened

Choose which vCenter Alarms need to be ticketed

You can get a list of current alarms with powercli as follows:


Configure Alarms to send SNMP

vCenter must be configured to use SNMP with the following lines:

$srv = vcenterservername
Get-AdvancedSettingEntity $srv  –Name | Set-AdvancedSettingValue public
Get-AdvancedSettingEntity $srv  –Name snmp.receiver.2.enabled | Set-AdvancedSettingValue $true
Get-AdvancedSettingEntity $srv  –Name | Set-AdvancedSettingValue

The following will add SNMP to the alarms:

Get-AlarmDefinition -Name "Alarm1" | New-AlarmAction -Snmp

Configure the Alarm Action in SNMP Trap

I ran into a number of issues that generated this community post .   The essential issue is that all SNMP events generated by vSphere come in as the same type of event vpxaAlarmInfo.  The details of the event contains information an internal name.   This is where the problem begins.   The name for any custom created event is the name of the event.  For example if I create a Alarm called JoeTest then it’s called JoeTest.   Sounds simple right?   Well… no because the VMware built in alarms don’t following this naming convention.   The Host connection and power state (easiest one for me to generate)  is named alarm.HostConnectionStateAlarm.   Making my mappings for any VMware generated events very hard.    So I went on a quest to locate these names.


The Quest for the names

My first stop was PowerCLI using the command:

$bob = Get-AlarmDefinition -Name "Host connection and power state"
$bob | fl


This fine powershell did not produce the alarm.HostConnectionStateAlarm name.  It did produce a Alarm-145 (unique to my vCenter).   I tried lots of ways to work on this object like get-view etc… without any luck.


My next stop was the MOB (Managed Object Browse)  also known as my least favorite place.   Using the following MOB I was able to learn everything about the alarm except the name for SNMP:







This lead me to my last stop the vCenter database.  Some finely crafted searches produced a number of tables with the information.   I was left with the VPX_EVENT_ARG table.  It seems to be a table of all events in the system.   Inside this I was able to locate names that seemed to fit.   A few more minutes did not produce any primary keys to link to the Alarm tables.   I was stuck so I punted.  The following is a SQL command I used to produce the Alarms names:


select distinct OBJ_NAME from [vCenter].[dbo].[VPX_EVENT_ARG] where obj_name like ‘%alarm%’


It produced the following built in Alarm names:



Testing two additional events confirmed I was on the correct track.


End Result

Yep I don’t have a clue how they link but it produced a list that seems to work and I it.  I hope it helps you save some time.


2 Replies to “Sending vCenter Alarms via SNMP Challenges with hidden event names”

  1. Hi,
    thanks for the blog, it is a good starting point for this badly documented feature.

    Also with a little help from this discussion:

    I was able to create this command:
    (get-alarmdefinition) | ft -auto key, systemname, name

    And that gave me this result:

    Key SystemName Name
    — ———- —-
    alarm-1 alarm.HostConnectionStateAlarm Host connection and power state
    alarm-10 alarm.VmNoCompatibleHostForSecondaryAlarm No compatible host for Secondary VM
    alarm-100 alarm.SubscriptionLicenseExpiredVc Expired vCenter Server time-limited license
    alarm-101 alarm.SubscriptionLicenseExpiredHost Expired host time-limited license
    alarm-102 alarm.SubscriptionLicenseExpiredVsan Expired Virtual SAN time-limited license
    alarm-103 alarm.VmMacConflictAlarm VM MAC Conflict
    alarm-104 alarm.DBHealthAlarm Database Health Alarm
    alarm-105 alarm.HostIpConflictAlarm Host IP Address Conflict Alarm
    alarm-106 alarm.VCHAHealthAlarm vCenter HA Cluster Health Alarm
    alarm-107 Virtual SAN Health Alarm ‘Unexpected number of fault domains’
    alarm-108 Virtual SAN Health Alarm ‘Hosts disconnected from VC’
    alarm-109 Virtual SAN Health Alarm ‘Stretched cluster health’
    alarm-11 alarm.ProcessorHealthAlarm Host processor status
    alarm-110 Virtual SAN Health Alarm ‘Current cluster situation’
    alarm-111 Virtual SAN Health Alarm ‘Home object’
    alarm-112 Virtual SAN Health Alarm ‘Limits health’
    alarm-113 Virtual SAN Health Alarm ‘Advanced Virtual SAN configuration in sync’
    alarm-114 Virtual SAN Health Alarm ‘Unexpected Virtual SAN cluster members’
    alarm-115 Virtual SAN Health Alarm ‘ESX Virtual SAN Health service installation’
    alarm-116 Virtual SAN Health Alarm ‘Unicast agent not configured’
    alarm-117 Virtual SAN Health Alarm ‘Disk format version’
    alarm-118 Virtual SAN Health Alarm ‘MTU check (ping with large packet size)’
    alarm-119 Virtual SAN Health Alarm ‘Preferred fault domain unset’
    alarm-12 alarm.MemoryHealthAlarm Host memory status
    alarm-120 Virtual SAN Health Alarm ‘Component metadata health’
    alarm-121 Virtual SAN Health Alarm ‘Active multicast connectivity check’
    alarm-122 Virtual SAN Health Alarm ‘Virtual SAN HCL DB up-to-date’
    alarm-123 Virtual SAN Health Alarm ‘Disk capacity’
    alarm-124 Virtual SAN Health Alarm ‘Performance data collection’
    alarm-125 Virtual SAN Health Alarm ‘Host issues retrieving hardware info’
    alarm-126 Virtual SAN Health Alarm ‘Space efficiency usage health’
    alarm-127 Virtual SAN Health Service Alarm for Overall Health Summary
    alarm-128 Virtual SAN Health Alarm ‘All hosts have a Virtual SAN vmknic configured’
    alarm-129 Virtual SAN Health Alarm ‘Congestion’
    alarm-13 alarm.FanHealthAlarm Host hardware fan status
    alarm-130 Virtual SAN Health Alarm ‘Stats DB object conflicts’
    alarm-131 Virtual SAN Health Alarm ‘Physical disk component limit health’
    alarm-132 Virtual SAN Health Alarm ‘SCSI Controller on Virtual SAN HCL’
    alarm-133 Virtual SAN Health Alarm ‘All hosts have matching multicast settings’
    alarm-134 Virtual SAN Health Alarm ‘Virtual SAN VM health’
    alarm-135 Virtual SAN Health Alarm ‘Stats master election’
    alarm-136 Virtual SAN Health Alarm ‘Controller Release Support’
    alarm-137 Virtual SAN Health Alarm ‘Hosts with connectivity issues’
    alarm-138 Virtual SAN Health Alarm ‘Virtual SAN cluster partition’
    alarm-139 Virtual SAN Health Alarm ‘Controller Cache Setting’
    alarm-14 alarm.VoltageHealthAlarm Host hardware voltage
    alarm-140 Virtual SAN Health Alarm ‘Data health’
    alarm-141 Virtual SAN Health Alarm ‘After 1 additional host failure’
    alarm-142 Virtual SAN Health Alarm ‘Software state health’
    alarm-143 Virtual SAN Health Alarm ‘Network health’
    alarm-144 Virtual SAN Health Alarm ‘Hosts with Virtual SAN disabled’
    alarm-145 Virtual SAN Health Alarm ‘Invalid unicast agent’
    alarm-146 Virtual SAN Health Alarm ‘Overall disks health’
    alarm-147 Virtual SAN Health Alarm ‘Witness host not found’
    alarm-148 Virtual SAN Health Alarm ‘All hosts have matching subnets’
    alarm-149 Virtual SAN Health Alarm ‘Software version compatibility’
    alarm-15 alarm.TemperatureHealthAlarm Host hardware temperature status
    alarm-150 Virtual SAN Health Alarm ‘Basic (unicast) connectivity check (normal ping)’
    alarm-151 Virtual SAN Health Alarm ‘Virtual SAN HCL DB Auto Update’
    alarm-152 Virtual SAN Health Alarm ‘Multicast assessment based on other checks’
    alarm-153 Virtual SAN Health Alarm ‘Virtual SAN Health Service up-to-date’
    alarm-154 Virtual SAN Health Alarm ‘Virtual SAN disk balance’
    alarm-155 Virtual SAN Health Alarm ‘Stats DB object’
    alarm-156 Virtual SAN Health Alarm ‘CIM Provider Installation’
    alarm-157 Virtual SAN Health Alarm ‘Host component limit’
    alarm-158 Virtual SAN Health Alarm ‘Physical disk health retrieval issues’
    alarm-159 Virtual SAN Health Alarm ‘Cluster health’
    alarm-16 alarm.PowerHealthAlarm Host hardware power status
    alarm-160 Virtual SAN Health Alarm ‘Memory pools (slabs)’
    alarm-161 Virtual SAN Health Alarm ‘Virtual SAN CLOMD liveness’
    alarm-162 Virtual SAN Health Alarm ‘Space efficiency configuration consistency’
    alarm-163 Virtual SAN Health Alarm ‘Service installation status’
    alarm-164 Virtual SAN Health Alarm ‘Controller Firmware’
    alarm-165 Virtual SAN Health Alarm ‘Virtual SAN HCL health’
    alarm-166 Virtual SAN Health Alarm ‘Metadata health’
    alarm-167 Virtual SAN Health Alarm ‘Virtual SAN object health’
    alarm-168 Virtual SAN Health Alarm ‘Unicast agent configuration inconsistent’
    alarm-169 Virtual SAN Health Alarm ‘Controller RAID Setting’
    alarm-17 alarm.SystemBoardHealthAlarm Host hardware system board status
    alarm-170 Virtual SAN Health Alarm ‘Physical disk health’
    alarm-171 Virtual SAN Health Alarm ‘No disk claimed on witness host’
    alarm-172 Virtual SAN Health Alarm ‘Network configuration’
    alarm-173 Virtual SAN Health Alarm ‘Invalid preferred fault domain on witness host’
    alarm-174 Virtual SAN Health Alarm ‘Witness host within vCenter cluster’
    alarm-175 Virtual SAN Health Alarm ‘Witness host fault domain misconfigured’
    alarm-176 Virtual SAN Health Alarm ‘Service runtime status’
    alarm-177 Virtual SAN Health Alarm ‘Controller Driver’
    alarm-178 Virtual SAN Health Alarm ‘iSCSI target service’
    alarm-179 Virtual SAN Health Alarm ‘All hosts contributing stats’
    alarm-18 alarm.BatteryHealthAlarm Host battery status
    alarm-180 Virtual SAN Health Alarm ‘Virtual SAN Performance Service health’
    alarm-181 Virtual SAN Health Alarm ‘Memory pools (heaps)’
    alarm-182 Virtual SAN Health Alarm ‘Site Latency Health’
    alarm-183 Virtual SAN Health Alarm ‘Unsupported host version’
    alarm-19 alarm.OtherHealthAlarm Status of other host hardware objects
    alarm-2 alarm.VmFaultToleranceLatencyStatusAlarm Virtual Machine Fault Tolerance vLockStep interval Status Changed
    alarm-20 alarm.StorageHealthAlarm Host storage status
    alarm-21 alarm.HostErrorAlarm Host error
    alarm-22 alarm.VmErrorAlarm Virtual machine error
    alarm-23 alarm.HostConnectivityAlarm Host connection failure
    alarm-24 alarm.StorageConnectivityAlarm Cannot connect to storage
    alarm-25 alarm.MigrationErrorAlarm Migration error
    alarm-26 alarm.ExitStandbyErrorAlarm Exit standby error
    alarm-27 alarm.LicenseError License error
    alarm-28 alarm.HealthStatusChangedAlarm Health status changed alarm
    alarm-29 alarm.VmFaultToleranceStateChangedAlarm Virtual machine Fault Tolerance state changed
    alarm-3 alarm.HostCPUUsageAlarm Host CPU usage
    alarm-30 alarm.NetworkConnectivityLostAlarm Network connectivity lost
    alarm-31 alarm.NetworkRedundancyLostAlarm Network uplink redundancy lost
    alarm-32 alarm.NetworkRedundancyDegradedAlarm Network uplink redundancy degraded
    alarm-33 alarm.MigrateBindToVMKAlarm VMKernel NIC not configured correctly
    alarm-34 alarm.IormNonVIWorkloadAlarm Unmanaged workload detected on SIOC-enabled datastore
    alarm-35 alarm.SELHealthAlarm Host IPMI System Event Log status
    alarm-36 alarm.BMCHealthAlarm Host Baseboard Management Controller status
    alarm-37 alarm.LicenseUserThresholdExceededAlarm License user threshold monitoring
    alarm-38 alarm.ThinProvisionedLunAlarm Thin-provisioned volume capacity threshold exceeded
    alarm-39 alarm.LunCapabilityAlarm Datastore capability alarm
    alarm-4 alarm.HostMemoryUsageAlarm Host memory usage
    alarm-40 alarm.StoragePodSDRSRecommendation Storage DRS recommendation
    alarm-41 alarm.StoragePodSDRSNotSupportedHost Storage DRS is not supported on a host
    alarm-42 alarm.DatastoreInMultipleDatacenters Datastore is in multiple datacenters
    alarm-43 alarm.StoragePodOutOfSpace Datastore cluster is out of space
    alarm-44 alarm.HAinsufficientFailoverResources Insufficient vSphere HA failover resources
    alarm-45 alarm.HAfailoverInProgress vSphere HA failover in progress
    alarm-46 alarm.HAcannotFindMaster Cannot find vSphere HA master agent
    alarm-47 alarm.HAhostStatus vSphere HA host status
    alarm-48 alarm.HAfailoverFailed vSphere HA virtual machine failover failed
    alarm-49 alarm.HAvmMonitoringAction vSphere HA virtual machine monitoring action
    alarm-5 alarm.VmCPUUsageAlarm Virtual machine CPU usage
    alarm-50 alarm.HAvmMonitoringError vSphere HA virtual machine monitoring error
    alarm-51 alarm.LicenseCapacityExceededAlarm License capacity monitoring
    alarm-52 alarm.HostLicenseEditionNotAllowed The host license edition is not compatible with the vCenter Server license edition
    alarm-53 alarm.VdsHCVlanTrunkedAlarm vSphere Distributed Switch VLAN trunked status
    alarm-54 alarm.VdsHCMTUMatchAlarm vSphere Distributed Switch MTU matched status
    alarm-55 alarm.VdsHCMTUSupportedAlarm vSphere Distributed Switch MTU supported status
    alarm-56 alarm.VdsHCTeamingMatchAlarm vSphere Distributed Switch teaming matched status
    alarm-57 alarm.VmDiskConsolidationNeededAlarm Virtual machine Consolidation Needed status
    alarm-58 alarm.VFlashResourceHealthAlarm Host virtual flash resource status
    alarm-59 alarm.VFlashResourceUsageAlarm Host virtual flash resource usage
    alarm-6 alarm.VmMemoryUsageAlarm Virtual machine memory usage
    alarm-60 alarm.HostVendorProviderRegistrationAlarm Registration/unregistration of a VASA vendor provider on a Virtual SAN host fails
    alarm-61 alarm.VsanClusterLicenseExpiryAlarm Expired Virtual SAN license
    alarm-62 alarm.VmStorageComplianceAlarm VM storage compliance alarm
    alarm-63 alarm.DatastoreStorageComplianceAlarm Datastore compliance alarm
    alarm-64 alarm.VmcpTerminateVmAborted vSphere HA VM Component Protection could not power off a virtual machine
    alarm-65 alarm.ServiceControlAgentHealthAlarm Service Control Agent Health Alarm
    alarm-66 alarm.IdentityHealthAlarm Identity Health Alarm
    alarm-67 alarm.VsphereClientHealthAlarm vSphere Client Health Alarm
    alarm-68 alarm.EAMHealthAlarm ESX Agent Manager Health Alarm
    alarm-69 alarm.MsgBusHealthAlarm Message Bus Config Health Alarm
    alarm-7 alarm.DatastoreDiskUsageAlarm Datastore usage on disk
    alarm-70 alarm.LicenseHealthAlarm Cis License Health Alarm
    alarm-71 alarm.ApplmgmtHealthAlarm Appliance Management Health Alarm
    alarm-72 alarm.InventoryHealthAlarm Inventory Health Alarm
    alarm-73 alarm.VCServerHealthAlarm vCenter Server Health Alarm
    alarm-74 alarm.DSHealthAlarm Data Service Health Alarm
    alarm-75 alarm.RBDHealthAlarm RBD Health Alarm
    alarm-76 alarm.VSMHealthAlarm vService Manager Health Alarm
    alarm-77 alarm.PerfchartsHealthAlarm Performance Charts Service Health Alarm
    alarm-78 alarm.ContentLibraryServiceHealthAlarm Content Library Service Health Alarm
    alarm-79 alarm.VdcsHealthAlarm Virtual Datacenter Service Health Alarm
    alarm-8 alarm.LicenseNonComplianceAlarm License inventory monitoring
    alarm-80 alarm.TsHealthAlarm Transfer Service Health Alarm
    alarm-81 alarm.NetdumperHealthAlarm VMware vSphere ESXi Dump Collector Health Alarm
    alarm-82 alarm.VapiEndpointHealthAlarm VMware vAPI Endpoint Service Health Alarm
    alarm-83 alarm.VwsHealthAlarm VMware System and Hardware Health Manager Service Health Alarm
    alarm-84 alarm.SpsHealthAlarm VMware vSphere Profile-Driven Storage Service Health Alarm
    alarm-85 alarm.VmwareSyslogHealthAlarm VMware Common Logging Service Health Alarm
    alarm-86 alarm.VmwareVpostgresHealthAlarm PostgreSQL Service Health Alarm
    alarm-87 alarm.HostCertManagementModeChangedAlarm vSphere vCenter Host Certificate Management Mode
    alarm-88 alarm.HostCertStatusAlarm ESXi Host Certificate Status
    alarm-89 alarm.CertificateStatusAlarm Certificate Status
    alarm-9 alarm.VmTimedoutStartingSecondaryAlarm Timed out starting Secondary VM
    alarm-90 alarm.VasaProviderDisconnectedAlarm VASA provider disconnected
    alarm-91 alarm.VasaProviderCertificateExpiryAlarm VASA Provider certificate expiration alarm
    alarm-92 alarm.VmAdapterResvervationStatus Virtual Machine network adapter reservation status
    alarm-93 alarm.VsanHostDiskErrorAlarm Errors occurred on the disk(s) of a Virtual SAN host
    alarm-94 alarm.VasaProviderRefreshCACertsAndCRLsFailureAlarm Refreshing CA certificates and CRLs for a VASA provider failed
    alarm-95 alarm.VasaProviderObjectAlarm Object type storage alarm
    alarm-96 alarm.IoFilterHostVendorProviderRegistrationAlarm Registration/unregistration of third-party IO filter storage providers fails on a host
    alarm-97 alarm.IoFilterManagementOperationAlarm vSphere APIs for IO Filtering (VAIO) Filter Management Operations
    alarm-98 alarm.LicenseExpiredVc Expired vCenter Server license
    alarm-99 alarm.LicenseExpiredHost Expired host license

    I hope this helps someone to save some more time 🙂
    Regards, Hans Warmink

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.