Info from Chet:

> 
> Due to the way the MIN/MAX are evaluated (min must always be less than max) 
> it isn't possible to handle this with a DERIVE data point and a threshold. 
> However, with the addition of an event class transform we can make this work.
> 
> The first step is to create a threshold on this data point that will ALWAYS 
> be violated. The easiest way to do this is to make the MIN = 1 and MAX = -1. 
> Now you need to create the event class transform that will set the severity 
> of these events to 0 (CLEAR) if the value is not 0.
> 
> Let's say you created an event class called /Perf/MyCustom and are sending 
> these threshold events to this class. Go to that event class, click its menu, 
> choose more then transform. Put the following in the transform.
> 
> import re
> match = re.search('threshold of [^:]+: current value -{0,1}([\d\.]+)', 
> evt.message)
> if match and float(match.groups()[0]) != 0:
>     evt.severity = 0
> 


Corrected by me, was a " - should have been a '.
Added by me to handle negative changes.

You may also want to be careful about the decimal places as the event summary 
which we're comparing to only shows 2 decimal places - the application we 
monitor returns values to 12 decimal places so I had to add an RPN on the graph 
point to multiply the value by 10000000000 (using the RPN: 10000000000,*) to 
make sure the decimal places weren't ignored.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=25547#25547

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to