Set Threshold as percentage of a data point
Subject: |
Set Threshold as percentage of a data point |
Author: |
Arpitha Hanumanth |
Posted: |
2017-05-15 14:50 |
Hi All,
I have a data source(dataSource) created which has two data points(dataSource_dataPoint1, dataSource_dataPoint2) The data source is of type "COMMAND". I want to set an alerts for the following condition:
Send alert when dataSource_dataPoint1 > 80% of dataSource_dataPoint2.
For this, I use the following for Minimum value:
here.getRRDValue('dataSource_dataPoint2') * .80
But it turns out that my alerts are not getting generated :( I made sure that the RRD files are in being created and populated correctly.
Please help!!
Thanks so much,
Arpitha
Subject: |
RE: Set Threshold as percentage of a data point |
Author: |
Jane Curry |
Posted: |
2017-05-16 07:20 |
Your expression looks reasonable - just check that you REALLY have exactly the correct names (and upper/lower case).
The other thing you might consider is to use the Calculated Performance ZenPack -
https://www.zenoss.com/product/zenpacks/calculated-performance . That is much more flexible and allows you to create both datapoints and thresholds based on combinations of both object attributes and other RRD datapoints. Personally, I use Calculated Performance rather than trying to use the here.getRRDValue technique.
Cheers,
Jane
------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------