Same Graph 3 Times

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

Moderators: Developers, Moderators

Post Reply
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Same Graph 3 Times

Post by Diggit2001 »

Hello. When I open any graph in Cacti, I am shown the same graph three times along with the 1 Day Average graph. My understanding is that the four graphs should all show different averages: 5 minute, 30 minute, 2 hour and 1 day so I'm not sure what's up with this. Not sure I'm explaining it correctly, so I have attached a screenshot.

Any assistance would be appreciated.

Thanks.
Attachments
cacti_graph.png
cacti_graph.png (460.89 KiB) Viewed 374 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Same Graph 3 Times

Post by cigamit »

You don't specify your Cacti version, so I assume its old.
Apply the fix specified in
https://github.com/Cacti/cacti/issues/3798
or
https://github.com/Cacti/cacti/issues/3797

in graph_image.php and graph_json.php change the 1600000000 to 2600000000

Code: Select all

/* override: graph start time (unix time) */
if (!isempty_request_var('graph_start') && get_request_var('graph_start') < 2600000000) {
        $graph_data_array['graph_start'] = get_request_var('graph_start');
}

/* override: graph end time (unix time) */
if (!isempty_request_var('graph_end') && get_request_var('graph_end') < 2600000000) {
        $graph_data_array['graph_end'] = get_request_var('graph_end');
}
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Re: Same Graph 3 Times

Post by Diggit2001 »

Dangit. Yeah, I'm running 1.2.8. Guess I should have just upgraded first. I'll do that. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests