[rrd-users] Counting the number of times a threshold has been reached and print that number, trouble with TOTAL

Simon Hobson linux at thehobsons.co.uk
Tue Jul 26 10:13:02 CEST 2016


Alexander Topolanek <atopo at ocv.org> wrote:

> But the result is weird... the line for hotdays is working, showing 1's for all days above 30, but the total is 1.296000 M, not 14...

Did you look to see what you get if you divide 1296000 by 14 ? You'll find it's quite close to 86400 which is the number of seconds in a day. What you've done is get a rate of "one per second" for days that are hot, and totalling this gets you 1296000 for 15 days.
All you need to do is divide by 86400



More information about the rrd-users mailing list