special cdef does not calculate at all

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

giovanni
Posts: 25
Joined: Sat May 20, 2006 8:06 pm

Post by giovanni »

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!
giovanni
Posts: 25
Joined: Sat May 20, 2006 8:06 pm

Post by giovanni »

Hey lvm, what you think about bug report this ?
giovanni
Posts: 25
Joined: Sat May 20, 2006 8:06 pm

Post by giovanni »

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"];

Code: Select all

        $_SESSION["sess_current_timespan_end_now"] = $timespan["end_now"] - 300;
Thats it!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

giovanni 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"];

Code: Select all

        $_SESSION["sess_current_timespan_end_now"] = $timespan["end_now"] - 300;
Thats it!
That was exactly what I though of. You may post a bug at http://bugs.cacti.net with a reference to this post
Reinhard
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests