Sunday, December 29, 2013

How to Monitor Vcenter alarm using Monitoring agent tool such as SCOM opmanager

There are many ways  to monitor v center alarm. here I would like to share how to monitor v center alarm that installed on windows OS with monitoring tools such as SCOM.

components:

1) microsoft eventcreate.exe tool

2) monitoring tool agents

steps:

1)  create the pre list with the custom event ID and description as below.
create alert at cluster , hosts and VM level as well data store level and   where ever it's needed

example list:

Host level:
101.  Vcenter Alerting Host Connection failure for ESXI Server
102.  Vcenter Alerting Host battery status
103.  Vcenter Alerting Host Baseboard Management Controller status
104.  Vcenter  Alerting Cannot connect to storage status
105.  Vcenter  Alerting Host cpu usage
106. Vcenter  Alerting Host hardware fan status
107. Vcenter  Alerting Host hardware power status
108. Vcenter Alerting for Host hardware system board status
109. Vcenter Alerting for Host hardware temperature status
110. Vcenter Alerting for Host memory status
111. Vcenter Alerting for Host processor status
112. Vcenter Alerting for Network connectivity lost
113. Vcenter Alerting for Network uplink redundancy degraded
114. Vcenter Alerting for Network uplink redundancy lost
115.  Vcenter Alerting for Storage Path Alert
116. Vcenter Alerting for Host memory usage


2) In the alarm configuration , instead of using "send a notification trap" option,  you have to use " Run a command"  option in actions tab and it will execute the eventcreate.exe file to generate custom event ID in windows event viewer logs under application. 

please add this line in configuration tab   C:\Windows\System32\eventcreate.exe /t warning /id 101 /d "Host connection failure for host123, please check ESXI server on datacenter 1 cluster 1"

info about eventcreate.exe settings  http://technet.microsoft.com/en-us/library/bb490899.aspx 



so this will generate event id 101 in event viewer application logs with the description "Host connection failure for host123, please check ESXI server on datacenter 1 cluster"  as below


 



As you know, all the operation manager tool has option to monitor each and every windows event ID in it's configuration.  just install agent and configure op manger to monitor these custom event ID's. thats all


example from scom alert for data store usage




No comments:

Post a Comment