nachofw
2012-11-21 19:57:15 UTC
nachofw [http://community.zenoss.org/people/nachofw] created the discussion
"Help with transform, dependency issue"
To view the discussion, visit: http://community.zenoss.org/message/70076#70076
--------------------------------------------------------------
Hi all, i wonder if you could help me with an issue iÂŽm having with my zenoss
I dont have knowledge on python, only java and .net. iÂŽm taking over a zenoss server that was deployed by an ex employee
There is a transform aplied to /status/ping that isnt working. The goal of the transform is to supress events from devices that have dependencies with others.
There are many locations(routers with ip ending in .99) and in the LAN segment devices with ip ending in .80. I want to supress events from .80 when .99 is down.
dev=device.id
str=dev.split('.')
device_A=dmd.Devices.findDevice('10.'+str[1]+'.'+str[2])
if device_A.getPingStatus() > 0:
         evt.eventState = 2
evt.action = "drop"
| message | Problem with line 3: if device_A.getPingStatus() > 0: |
| summary | Error processing transform/mapping on Event Class /Status/Ping |
| exception | AttributeError: 'NoneType' object has no attribute 'getPingStatus' |
thanks in advance, hope i made the explanation clear enough
PD:im running zenoss 3.0.3
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70076#70076]
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]
"Help with transform, dependency issue"
To view the discussion, visit: http://community.zenoss.org/message/70076#70076
--------------------------------------------------------------
Hi all, i wonder if you could help me with an issue iÂŽm having with my zenoss
I dont have knowledge on python, only java and .net. iÂŽm taking over a zenoss server that was deployed by an ex employee
There is a transform aplied to /status/ping that isnt working. The goal of the transform is to supress events from devices that have dependencies with others.
There are many locations(routers with ip ending in .99) and in the LAN segment devices with ip ending in .80. I want to supress events from .80 when .99 is down.
dev=device.id
str=dev.split('.')
device_A=dmd.Devices.findDevice('10.'+str[1]+'.'+str[2])
if device_A.getPingStatus() > 0:
         evt.eventState = 2
evt.action = "drop"
| message | Problem with line 3: if device_A.getPingStatus() > 0: |
| summary | Error processing transform/mapping on Event Class /Status/Ping |
| exception | AttributeError: 'NoneType' object has no attribute 'getPingStatus' |
thanks in advance, hope i made the explanation clear enough
PD:im running zenoss 3.0.3
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70076#70076]
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]