Reportit Time Interval Cal for Graph over threshold Value

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Reportit Time Interval Cal for Graph over threshold Value

Post by sukanta »

Hi,
Need to calculate the total time of a particular graph crossed threshold value..
Any help??
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Here an example with a threshold of 95%. The result will be in seconds:

Code: Select all

f_rnd(f_num*step*f_dot(maxValue*0.95)/100)
It is always recommend to use a variable instead of a fixed threshold value. That keeps your report configuration flexible and avoids to create superfluous report templates.
At first define a variable returning the percentage of an individual threshold:

Code: Select all

e.g.
Maximum Value = 95
Minimum Value = 50
Default Value = 75
Type = Drop-down
Step = 5
After that you can use the variable in the calculation formula:

Code: Select all

f_rnd(f_num*step*f_dot(maxValue*c1v/100)/100)
Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Post by sukanta »

It is not working when the graph has only two Value like 1=UP, 2=DOWN.

Giving 127.50 k as output
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

What did you expect?

Please clone your report, reduce the number of interfaces to a single one, run the report in debug mode via CLI and send me the logfile, please.
I'll have a look at it.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests