On May 13, 2008, at 8:49 AM, Peccoux wrote:
I defined an event command which take the locationName in parameters. Zenoss runs my command and sometimes there is this log in zenactions daemon :

Traceback (most recent call last):
File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 353, in runEventCommand
   res = compiled(getEngine().getContext(environ))
File "/opt/zenoss/lib/python/Products/PageTemplates/ Expressions.py", line 224, in __call__
   v = var(econtext)
File "/opt/zenoss/lib/python/Products/PageTemplates/ Expressions.py", line 185, in __call__
   return self._eval(econtext)
File "/opt/zenoss/lib/python/Products/PageTemplates/ Expressions.py", line 173, in _eval
   ob = self._subexprs[-1](econtext)
File "/opt/zenoss/lib/python/Products/PageTemplates/ Expressions.py", line 127, in _eval
   ob = restrictedTraverse(ob, path, getSecurityManager())
File "/opt/zenoss/lib/python/Products/PageTemplates/ Expressions.py", line 334, in restrictedTraverse
   guarded_getattr(object, name)
AttributeError: 'NoneType' object has no attribute 'getLocationName'

Have you already seen this problem ?

This would happen if the event that triggered this command had no device associated with it. Try adding another criteria to your event command's filter. Production State == Production. This will filter out events that have no device associated with them.

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

Reply via email to