Sven,
Patch attached. Patch it in, and then run zentrap like this:
$ zentrap start -v 10
Lots and lots of debug.
-Eric
Schuran, Sven wrote:
Eric,
I am able to add it, but I am not really comfortable in python, just a small
hint please.
Sven
-----Ursprüngliche Nachricht-----
Von: Eric Newton [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 18. Juli 2006 19:29
An: General discussion of using zenoss system
Betreff: Re: [zenoss-users] SNMP Trap debugging
If you are comfortable in python, you can add a log message to
$ZENHOME/Products/ZenEvents/zentrap.py, in handleTrap, at or around line 81.
-Eric
Schuran, Sven wrote:
Hi,
I am receving traps right now, but I am not sure I they are correct.
May be zenoss does something wrong with them, or the sending system
sned wrong OID's.
How to trace every trap to a log file, to have a look at it.
Thanks Sven
Index: Products/ZenEvents/zentrap.py
===================================================================
--- Products/ZenEvents/zentrap.py (revision 1905)
+++ Products/ZenEvents/zentrap.py (working copy)
@@ -79,6 +79,7 @@
def handleTrap(self, data, addr):
'Traps are processed asynchronously in a thread'
+ self.log.debug('Got trap %r from %r', data, addr)
self.q.put( (data, addr, time.time()) )
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users