Okay it looks like I might have figured it out. I get an error in zenhub BUT it
does suppress alerts if the router is down here is what I have below. If
anybody has any suggestions that would be great but that this would be helpful.
Code:
import re
m = re.search("ip 10.([\d]+).([\d]+).3 is down", evt.message)
ip = "10." + str(m.group(1)) + "." + str(m.group(2)) + ".17"
my_device = device.findDevice(ip)
if my_device.pingStatus() > 0:
evt.eventState = 2 # suppressed
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=28517#28517
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users