Apr 26, 2010 10:59 AM
Device Dependency
-
Like (0)
I read the post, but I do not understand how to apply to this case.
Create a device dependency docs/DOC-3215
I need to create an alert for a dependency device, Here I attached my example.
How to create an alert if device A is up but dependency device B is down.
I don't need an alert for each device or for condition: "if device A is down> device B
is down too..." Only an alert for dependency device B (is used ICMP) .
Any ideas?
Regards
currently are u able to ping device B from zenoss?
when you add device B to zenoss, it should have discovered that to get to B, you go thru A and this will be indicated in the "Routes" component of the OS tab.
zPingMonitor is True by default for added devices, so if device B goes down, you will receive an alert to say device B is down, you dont need to do anything in this case.
however if the route to B is not in routes, thats when you can have a situation where both A and B alert as down when only A goes down.
if you cant ping device B, it means icmp is blocked along the way (possibly by the router) so you need to modify ACLs on the router to allow icmp both ways.
Tnks, but,
Currently "B" (DVR) and "A" (router) is already monitoring trought ICMP, so that is not the problem. I only want an alert when device B is down, and device A is up.
Like i said, You can only reach B when A is up. so when B goes down (when A is up) the ping monitor will notice this and will generate a device down event. Now if you want to receive that alert, you put an alert rule for the specifi user who should receive the alert, with:
Event State = New
Severity >= Error
ok, but the thing is that i do not need alerts for B when is down, because A is down.
I know that if i want to reach B, I need that A device got to be up...
what I need, is to send an automatic e-mail to B managger monitor when only B is down and A device is up.
and avoid to send automatic e-mails every time A is down, and the logic consecuence is that B is down too, for the implication case.
I am the manager monitor WAN (device A), in this device I`ve got like 400 routers, and the managger monitor B is a LAN administraton.
So i need to send an alert to B administration, only when B is down, because the segment LAN is down, and the WAN is up.
I know how to configure automatics e-mails, that is not the trouble...
do you understand me? can yuou see my problem?
thanks for the help, and sorry about my bad english...
To receive alert when B goes down (when A is up)
Do as I described above
To AVOID or SUPRESS (not to receive) alerts when B goes down (and A is down)
Use an event transform which implements dependency for example:
if device.id == 'device_B':
device_A = device.findDevice('id_of_device_A')
if device_A.getPingStatus() > 0:
evt.eventState = 2 # suppress or substitute this with line below to drop it
evt.action = "drop"
This supresses all events for device B when device A is down.
Thanks!
This works well.
###########################
if device.id == 'device_B':
device_A=dmd.Devices.findDevice('id_of_device_A')
if device_A.getPingStatus() > 0:
evt.severity = 3 # Changes severity of the event. (event warning)
###########################
I know this is an old post but this code no longer works with Zenoss 4.2.
Problem with line 2: if device.id ==
Anyone know what it needs to be now?
Just a thought: Is the indenting correct? python scripts are quite strict on how the indenting of the lines are to get the right syntax.
http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||