You may want to read the event mapping PDF graciously put together by
jcurry - event class mappings work for internally created events in
Zenoss like zenping etc, but wouldn't work with ones externally created
like from zencommand...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
ketenn57 wrote, On 2/3/2009 9:51 AM:
> I tried adding the following transforms to suppress events, but neither
> worked. Does anybody know how to get Ping Status from within a transform as
> this would be a simple way to suppress events if the device doesn't ping.
> Also if this transform is placed in /Events will it apply to all event
> classes or do you have to put it in each specifc event class that you would
> like to supress?
>
> 1.
> device = evt.device
> if device.pingStatus() > 0:
> evt.eventState = 2 #suppressed
>
> 2.
> device = evt.device
> if device.getPingStatus() > 0:
> evt.eventState = 2 #suppressed
>
> The zenhub.log shows the following errors when these transforms are enabled.
>
> ERROR zen.Events: Error transforming EventClassInst Snmp ('str' object has no
> attribute 'pingStatus')
>
> ERROR zen.Events: Error transforming EventClassInst Snmp ('str' object has no
> attribute 'getPingStatus')
>
>
>
>
> -------------------- m2f --------------------
>
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=30843#30843
>
> -------------------- 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