I'm using thold 0.4.3 with Cacti 0.8.7e and PIA 2.5.
I want to make alert when the ratio between two values of a data template is below a given value. I have created two thold templates that should have the same behavior but based on one value of the data template or the other.
The values that thold use to decide if the threshold should be triggered is wrong. It seems to be calculated with values belonging to different polling cycles.
Here is a detailed explanation of what I have setup:
My data template with two counters "received" and "forwarded":
The first thold template created:
The CDEF is
Code: Select all
cdef=CURRENT_DATA_SOURCE,ALL_DATA_SOURCES_NODUPS,CURRENT_DATA_SOURCE,-,/,100,*
The CDEF is
Code: Select all
cdef=ALL_DATA_SOURCES_NODUPS,CURRENT_DATA_SOURCE,-,CURRENT_DATA_SOURCE,/,100,*
And if I go to the instance of the second template I get, as expected, the same value as with the first template:
Now, comes the "not working as expected" part. Here is what I get when I display the thold states. Not that the value are not the same as the ones seen before (the screenshots have been taken within the same polling cycle) and even differs between them. One of the value is superior to 100% which never occurs with the graph.
Does anyone have a suggestion ?
NB: I know the versions I use are not the latest but as my Cacti installation involve 5 Cacti instances (with 2,000 hosts and 600,000 data sources) upgrade must be thoroughly tested. If this is a known bug with this thold version and I can upgrade only thold without changing Cacti, PIA or Boost version to solve it, it should be doable.