Hmm, what's evt.eventState? I haven't seen that before.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



mshundal wrote, On 4/30/2009 1:38 PM:
> Well I am tired of getting alerts that an entire datacenter's worth of 
> devices are down when its just a dropped vpn tunnel...
> 
> we have multiple locations (/dc1, /dc2 ... /dc10 etc) and then sub locations 
> defined under that (/dc1/rack5 etc). one firewall or router per /dcX is 
> handling the vpn web.
> 
> now every time there's a hickup in a vpn tunnel... you get the picture
> 
> so here is what i have so far:
> 
> Code:
> 
> if getLocationName == '/datacenter1':
>     dc1_router = device.findDevice('router_in_dc1')
>     if p1n_router.getPingStatus() > 0:
>         evt.eventState = 3
> if device.id == 'router_in_dc1':
>         evt.eventState = 5
> 
> 
> 
> 
> it however doesnt work. if it did; we would just get a singular alert (for 
> the router in question and not for every device behind it as well)...
> 
> any ideas how this can be fixed or some other work around?
> 
> thanks.
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=34096#34096
> 
> -------------------- m2f --------------------
> 
> 
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to