Try this... sometimes an event is an object and sometimes a dict... I forgot!

-EAD


Index: ZenEvents/EventServer.py
===================================================================
--- ZenEvents/EventServer.py    (revision 5279)
+++ ZenEvents/EventServer.py    (working copy)
@@ -110,7 +110,10 @@
     def sendEvent(self, evt):
         "wrapper for sending an event"
         self.zem._p_jar.sync()
-        evt.manager = self.myfqdn
+        if type(evt) == dict:
+            evt['manager'] = self.myfqdn
+        else:
+            evt.manager = self.myfqdn
         self.zem.sendEvent(evt)



On May 10, 2007, at 12:12 PM, polak wrote:

Hi,

I didn't receive any traps from my network devices. I have error with zentraps

2007-05-10 19:59:03 ERROR zen.ZenTrap: 'dict' object has no attribute 'manager'
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenEvents/EventServer.py", line 99, in run
    self.doHandleRequest(*args)
File "/usr/local/zenoss/Products/ZenEvents/zentrap.py", line 174, in doHandleRequest
    self.sendEvent(result)
File "/usr/local/zenoss/Products/ZenEvents/EventServer.py", line 113, in sendEvent
    evt.manager = self.myfqdn
AttributeError: 'dict' object has no attribute 'manager'


Can somebody help me ?

Thanks.

------------------------
 polak




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

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

-------------------- 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