Hmm, well of course the problem is knowing the right call, but it will
be something like: (I'm not a python coder, and haven't tested this)
description = string.split(evt.description)
svalue = description.pop()
value = float(svalue)
if value < 0:
evt.severity = 0
Things I'm not entirely sure of - evt.description - does Zenoss expose
this? Is it named something else? I think I'm handling the list properly
from splitting the string and grabbing the last value, depending of
course on if all the descriptions *end* in the numerical value. Will
float choke on the conversion if there's a -? I think that's
numerical... And finally, did you actually want to drop the event? I'm
not sure if you can easily historify it like you can drop it here.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
dougdoug wrote, On 4/2/2009 10:16 AM:
> so the event description (from the alarm) is:
> threshold of Temperature not met: current value -1.00
>
> and the event class is /HW/Temperature
>
> what I'd really like to do is ignore any threshold not met event where the
> current value < 0, but I'm just not sure how to do it. How would I go about
> using an EventTransform to do this, assuming that's how it should be done?
> (documentation and/or examples?)
>
>
>
>
> -------------------- m2f --------------------
>
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=32939#32939
>
> -------------------- 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