Hi again lvm! Thank you very much for your help.
I've checked for permission problems, its not the case, apache user have total access (rw) to cacti.log and (rx) to all the recursive directories.
But, im getting closer to the problem.
Lets analyse how cacti generates the graph in main menu:
http://URL/cacti/graph_image.php?local_ ... 1150482779
Now lets see how cacti generates the graph when you "click" on the graph:
http://URL/cacti/graph_image.php?local_ ... 8&rra_id=1
So, when i don't use the option:
graph_start=1150396379 AND graph_end=1150482779 the cdef works as a charm!
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;
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
That was exactly what I though of. You may post a bug at http://bugs.cacti.net with a reference to this postgiovanni wrote: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:
Code: Select all
$_SESSION["sess_current_timespan_end_now"] = $timespan["end_now"];
Thats it!Code: Select all
$_SESSION["sess_current_timespan_end_now"] = $timespan["end_now"] - 300;
Reinhard
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Don't reference posts in the bug system. Outline the whole bug in the bug system.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 3 guests