Data collector issue.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
jantao
Posts: 7
Joined: Mon Apr 06, 2020 2:36 am

Data collector issue.

Post by jantao »

Hi all!
Fresh install: Ubuntu 18.04 + Cacti 1.2.10.

I have an issue that all of my graphs stops drawing when i try to change any parameter of the Main Poller via web interface and click save.
I found that "Last Finished" and "Last update time" shifts +1hr after these Main Poller changes. Cacti log at the same moment shows valid time:

Code: Select all

04/06/2020 10:40:03 - SYSTEM STATS: Time:1.2879 Method:cmd.php Processes:10 Threads:0 Hosts:1 HostsPerProcess:1 DataSources:5 RRDsProcessed:5

My timezone is "Europe/Moscow" within php.ini. Not figured out with that issue yet, think it may be somehow DST related issue.
Any help greatly appreciated.
Attachments
mainpoller.jpg
mainpoller.jpg (125.26 KiB) Viewed 1747 times
mrscary
Cacti User
Posts: 149
Joined: Tue Aug 26, 2014 2:58 pm

Re: Data collector issue.

Post by mrscary »

look in your php.ini file and make sure the timezone is right
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Data collector issue.

Post by TheWitness »

Also, update to 1.2.11. It was just released.
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?
jantao
Posts: 7
Joined: Mon Apr 06, 2020 2:36 am

Re: Data collector issue.

Post by jantao »

Thank for your reply.

Made an upgrade to 1.2.11.
Checked timezone settings:

Code: Select all

root@cacti:~# timedatectl
                      Local time: Tue 2020-04-07 10:12:21 MSK
                  Universal time: Tue 2020-04-07 07:12:21 UTC
                        RTC time: Tue 2020-04-07 07:12:22
                       Time zone: Europe/Moscow (MSK, +0300)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

root@cacti:~# cat /etc/php/7.2/apache2/php.ini | grep date.timezone
; http://php.net/date.timezone
date.timezone = "Europe/Moscow"

root@cacti:~# cat /etc/php/7.2/cli/php.ini | grep date.timezone
; http://php.net/date.timezone
date.timezone = "Europe/Moscow"
Still Data Collector shows an hour forward than actual time in WebUI.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Data collector issue.

Post by Osiris »

When you edit the collector, is the timezone set properly?
Before history, there was a paradise, now dust.
jantao
Posts: 7
Joined: Mon Apr 06, 2020 2:36 am

Re: Data collector issue.

Post by jantao »

All worked fine BEFORE i edited collector. Timezone was correct and didn't change since initial install.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Data collector issue.

Post by TheWitness »

I think this might be a bug. Can you log it as such?
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?
jantao
Posts: 7
Joined: Mon Apr 06, 2020 2:36 am

Re: Data collector issue.

Post by jantao »

Just made fresh cacti 1.2.11 install on Centos 8.1 - same issue. I'll try to debug this and give a clue..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Data collector issue.

Post by TheWitness »

Console > Data Collection > Data Collectors (edit) -> Set the Time Zone.
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?
jantao
Posts: 7
Joined: Mon Apr 06, 2020 2:36 am

Re: Data collector issue.

Post by jantao »

Console > Data Collection > Data Collectors (edit) -> Set the Time Zone.
I have right setting here (Europe/Moscow). Poller uses UTC+4 somehow, while should use UTC+3. It used to be UTC+4 in Moscow during summer season before 2014. Now it is UTC+3 all the time after 2014.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Data collector issue.

Post by TheWitness »

You might have to reload your Timezones into MySQL or into your OS. Governments change timezone stuff all the time, making every programmer hate life except those using MySQL (and who keep things up-to-date).
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests