I enhanced the script a bit so it now can be aware of in-between ospf states, 
but it doesn't work as expected :

Code:

x = getattr(evt, "ospfNbrState")
ip = getattr(evt, "ospfNbrIpAddr")

if x == 8 :
        evt.severity = 0
        evt.summary = "OSPF Back to full"
elif x == 1 :
        evt.summary = "OSPF Neighbor Down : " + ip
elif x == 2 :
        evt.summary = "OSPF Neighbor " + ip + " : attempt"
elif x == 3 :
        evt.summary = "OSPF Neighbor " + ip + " : init"
elif x == 4 :
        evt.summary = "OSPF Neighbor " + ip + " : twoWay"
elif x == 5 :
        evt.summary = "OSPF Neighbor " + ip + " : exchangeStart"
elif x == 6 :
        evt.summary = "OSPF Neighbor " + ip + " : exchange"
elif x == 7 :
        evt.summary = "OSPF Neighbor " + ip + " : loading"




I can't figure out why it works fine when the value of ospfNbrState is 8 (it 
clears the alerts and modify the summary as expected), but it fails when the 
value is different, e.g. 1 

Here's what I got when ospfNbrState equals 8 :

Code:
summary: OSPF Back to full
message: snmp trap ospfNbrStateChange



And here's the results when ospfNbrState equals 1 :

Code:
summary:        snmp trap ospfNbrStateChange
message: snmp trap ospfNbrStateChange



What could cause this to happen ?




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=38191#38191

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to