Zoom Function doesn't work in Daily and Hourly mode

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

Moderators: Developers, Moderators

Locked
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Zoom Function doesn't work in Daily and Hourly mode

Post by Rikii16 »

Hello Everybody,

We have a issue when we want to zoom the graphs in Hourly and daily mode.
When we use the Zoom in a Hourly/Daily the graph don't change.

When we use the Zoom in in another Gramph mode(weekly, monthly and yearly) works fine.

Anybody have an idea or something that can help us with this issue?

Cacti version: 0.8.8f
OS: CENTOS 6.10
rrdtool: rrdtool-perl-1.3.8-10.el6.x86_64

Best Regars,
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by TheWitness »

True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by Rikii16 »

Thanks for the info.
I have a doubt.

Do you know what is the function of the following script? in graph_image.php and graph_json.php

/* 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');
}

Best Regards
shian7676
Posts: 3
Joined: Mon Sep 14, 2020 8:43 pm

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by shian7676 »

Hello everyone,

Modify the "graph_image.php", "graph_json.php", and "graph_xport.php" php files according to the suggestions, but it still cannot improve the View Graph Time status.
My version is 1.1.38
I don't know who has encountered the same situation?
pasan1986
Posts: 10
Joined: Wed Jul 22, 2020 2:05 am

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by pasan1986 »

I face same issue, did any find a solution for this?

Thanks
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by Rikii16 »

Hello,

After we change tha parameters in the 5 files, we have to restart any process of cacti?

Regards,
pasan1986
Posts: 10
Joined: Wed Jul 22, 2020 2:05 am

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by pasan1986 »

Dear All,

I couldn't find the path, my version is 1.1.38 and 0.8.8c.
there is no any path like this "/var/www/cacti/graph_image.php"

Please let me know the path.

Thanks
pasan1986
Posts: 10
Joined: Wed Jul 22, 2020 2:05 am

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by pasan1986 »

its Centos 7, location is there (/var/www/htm) but there is no any files in it.
Cacti version - Version 1.1.38

Thanks
Rikii16
Posts: 16
Joined: Fri Jan 03, 2020 3:25 pm

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by Rikii16 »

Thanks, the apply works for me.

For version 0.8.8f you just need to modify the files graph_image.php, global_constants.php, graph_xport.php

https://github.com/Cacti/cacti/commit/b ... dc8b18c1b7

Regards,
pasan1986
Posts: 10
Joined: Wed Jul 22, 2020 2:05 am

Re: Zoom Function doesn't work in Daily and Hourly mode

Post by pasan1986 »

it worked for me, thank you very much
Locked

Who is online

Users browsing this forum: No registered users and 3 guests