graph take 4,5 hours to show

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
jayarathna
Posts: 32
Joined: Mon Oct 29, 2018 1:55 am

graph take 4,5 hours to show

Post by jayarathna »

Dear All,

It takes more than 5 hours to show the graph after it creates it.RRD tool is running well. is there any option to reduce that time to create within 5 minutes.

Thanks.
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: graph take 4,5 hours to show

Post by camerabob »

Check your time zone settings. I recall another post where someone had the incorrect time zone and it took an hour or two to show the graphs.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: graph take 4,5 hours to show

Post by netniV »

Yeah, that smacks of timezone settings being different between PHP and MySQL (when checking PHP check for both CLI and Web ini files).
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
jayarathna
Posts: 32
Joined: Mon Oct 29, 2018 1:55 am

Re: graph take 4,5 hours to show

Post by jayarathna »

Dear All,

Please guide me to fix the time issue between Mysql and php.

Thanks.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: graph take 4,5 hours to show

Post by netniV »

Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
jayarathna
Posts: 32
Joined: Mon Oct 29, 2018 1:55 am

Re: graph take 4,5 hours to show

Post by jayarathna »

My time zones shows as below

vi /etc/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Colombo

////////////////////////////////////////////////////////////////////
[root@DBill-Monitor ~]# date
Mon Mar 11 11:07:29 IST 2019
[root@DBill-Monitor ~]# timedatectl status
Local time: Mon 2019-03-11 11:07:36 IST
Universal time: Mon 2019-03-11 05:37:36 UTC
RTC time: Mon 2019-03-11 05:37:36
Time zone: Asia/Colombo (IST, +0530)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a


is there any other location to be needed to change?

Thanks.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: graph take 4,5 hours to show

Post by netniV »

Depends on your system. Some have separate PHP.INI's for Web vs Cli.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests