ianw1974
2012-10-17 14:57:48 UTC
ianw1974 [http://community.zenoss.org/people/ianw1974] created the discussion
"Transform not working in Zenoss 4."
To view the discussion, visit: http://community.zenoss.org/message/69302#69302
--------------------------------------------------------------
Hi,
I've written transforms before, but something must have changed, because now a transform I'm trying to add isn't working. This is my transform:
if evt.device == 'myserver.mydomain.com' and evt.component == '/usr' and evt.severity != 0: evt.severity = 0
I want it to ignore that /usr on myserver is at 92% full, because this partition size doesn't change. There is already a transform (existed in installation by default) under /Perf/Filesystem, so I just added it above so that it would/should run both the transforms.
Why is my transform failing? Did something change with the python language, in that I must write it differently? I know now it's python 2.7 instead of python 2.6 which was in Zenoss 3.2.1. Please confirm?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69302#69302]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Transform not working in Zenoss 4."
To view the discussion, visit: http://community.zenoss.org/message/69302#69302
--------------------------------------------------------------
Hi,
I've written transforms before, but something must have changed, because now a transform I'm trying to add isn't working. This is my transform:
if evt.device == 'myserver.mydomain.com' and evt.component == '/usr' and evt.severity != 0: evt.severity = 0
I want it to ignore that /usr on myserver is at 92% full, because this partition size doesn't change. There is already a transform (existed in installation by default) under /Perf/Filesystem, so I just added it above so that it would/should run both the transforms.
Why is my transform failing? Did something change with the python language, in that I must write it differently? I know now it's python 2.7 instead of python 2.6 which was in Zenoss 3.2.1. Please confirm?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69302#69302]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]