szogu
2013-12-04 08:43:23 UTC
szogu [http://community.zenoss.org/people/szogu] created the discussion
"Transform doesn't work on DeviceGroups field"
To view the discussion, visit: http://community.zenoss.org/message/75392#75392
--------------------------------------------------------------
Hi,
I receive events from my python script using zensendevent and try to use transform to add DeviceGroups field but it doesn't work.
My transform is simple:
if evt.eventClassMapping.find("StatystykiViaSyslog") != -1:
  evt.DeviceGroups = "BM"
If i set:
if evt.eventClassMapping.find("StatystykiViaSyslog") != -1:
  evt.summary = "BM"
it works fine.
Someone could tell me why I cannot set DeviceGroups field?
Regards,
Tommy
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75392#75392]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Transform doesn't work on DeviceGroups field"
To view the discussion, visit: http://community.zenoss.org/message/75392#75392
--------------------------------------------------------------
Hi,
I receive events from my python script using zensendevent and try to use transform to add DeviceGroups field but it doesn't work.
My transform is simple:
if evt.eventClassMapping.find("StatystykiViaSyslog") != -1:
  evt.DeviceGroups = "BM"
If i set:
if evt.eventClassMapping.find("StatystykiViaSyslog") != -1:
  evt.summary = "BM"
it works fine.
Someone could tell me why I cannot set DeviceGroups field?
Regards,
Tommy
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75392#75392]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]