Hi
So I've got Zenoss setup to handle our SNMP Traps and at that, it works great.  
One thing I've noticed is that over all of our Cisco devices (200+) they are 
all set to send traps to Zenoss and they are all being translated properly, but 
one trap in particular (and if I can fix this, I can apply it to many other 
similar situations in zenoss), the tcpConnectionClose trap, which signifies a 
logout from a router/switch/etc, sends the username of the person who was 
connected as a trap variable, the problem is that there seems to be three 
different varbind oids that might contain the username.  Here is what I've 
currently got (in the transform field) to handle the possibility of the three 
different places for the username to occur;

evt. summary = "Logout from " + getattr(evt, "1.3.6.1.4.1.9.2.9.2.1.18.6", " ") 
+ getattr(evt, "1.3.6.1.4.1.9.2.9.2.1.18.322", " ") + getattr(evt, 
"1.3.6.1.4.1.9.2.9.2.1.18.1", " ") + " on " + evt.device

And this works, more or less, but would there be a better way of doing this, 
maybe with some conditional structure someplace (regex, or rule perhaps)?  Or 
is this the best/only way to achieve this sort of processing?  Thanks so much, 
this is a great product!  Cheers

J




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

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

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



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

Reply via email to