Hi everyone, let see if any of you can help me
I have a graph that uses a special Cdef (calculates saved bandwidth on Squid), when i see the graph on the "main window" the calculate is not made at all, see above:
As you can see, the "Atual:" field (Current field) is not calculated correctly, but when i click on the graph, the problem dissapears. See above:
Now, the deduction of the values works very well.
Here is the output of the command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Mustang (Firewall) - Squid - Trafego" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=-1 \
--vertical-label="bits / s" \
--slope-mode \
DEF:a="/var/www/joker.redix.com.br/htdocs/cacti/rra/mustang_firewall_serverinkb_396.rrd":serverInKb:AVERAGE \
DEF:b="/var/www/joker.redix.com.br/htdocs/cacti/rra/mustang_firewall_serverinkb_396.rrd":httpOutKb:AVERAGE \
CDEF:cdefa=a,1024,*,8,* \
CDEF:cdefe=b,1024,*,8,* \
CDEF:cdefi=b,a,LT,0,a,b,-,IF,1024,*,8,* \
AREA:cdefa#00CF00:"Entrada (Internet)" \
GPRINT:cdefa:LAST:"Atual\:%8.2lf%s" \
GPRINT:cdefa:AVERAGE:"M
special cdef does not calculate at all
Moderators: Developers, Moderators
FINALLY!
I found why cacti wasnt logging correctly, the DEBUG LEVEL was on on LOW... lol
But, lets go to the solution (or workaround):
The problem occours when RRDTool draws the graph using the timestamp using the last value as the current time... seems to be a bug in RRDTool...
To solve this issue i subtracted 300 (5 minutes) from the current time in: ./include/html/inc_timespan_settings.php
See above:
Thats it!
I found why cacti wasnt logging correctly, the DEBUG LEVEL was on on LOW... lol
But, lets go to the solution (or workaround):
The problem occours when RRDTool draws the graph using the timestamp using the last value as the current time... seems to be a bug in RRDTool...
To solve this issue i subtracted 300 (5 minutes) from the current time in: ./include/html/inc_timespan_settings.php
See above:
Code: Select all
$_SESSION["sess_current_timespan_end_now"] = $timespan["end_now"];
Code: Select all
$_SESSION["sess_current_timespan_end_now"] = $timespan["end_now"] - 300;
Who is online
Users browsing this forum: No registered users and 1 guest