May 17, 2013 7:06 PM
Ignoring WMI monitoring errors when a server is down (not pingable)
-
Like (0)
From my initial searching, I'm unable to find info on how to go about accomplishing this...
The problem is: When a Windows server goes offline (pings dropping), I also get Zenoss alerts such as "Could not read Windows services" and "Error collecting performance data".
I want to know how I would configure Zenoss to NOT attempt WMI monitoring on a server that is currently not replying with ICMP.
Any pointers? Maybe some kind of event transform?
| ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
bbbbaine:
You'll want to add a transform to the '/' eventClass that checks the device pingStatus and when device.getPingStatus() > 0 (is down) then evt._action = 'drop' or evt.eventStatus = 2 (supressed)
Best,
--Shane Scott (hackman238)
Thanks, Shane! This sounds like the solution to me. I added this to the /Status/Wmi event class:
if device.getPingStatus() > 0:
evt._action = "drop"
I'll update again when some time has passed without these annoying WMI errors...
bbbblaine:
Don't forget to add 4 spaces before the evt._action... That places the line under the if statement in python.
Best,
--Shane Scott (Hackman238)
My transform has 6 spaces before the drop statement...
For testing, I changes it to 4 spaces, and changed it to supress the events so that I can see what events are affected.
if device.getPingStatus() > 0:
evt.eventStatus = 2
bbbblaine:
Ah that'll work too. Jive ate the formatting.
Best,
--Shane Scott (Hackman238)
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||