Problem with the poller, the data collection and the Cacti graphs
Moderators: Developers, Moderators
Problem with the poller, the data collection and the Cacti graphs
Hi all,
I am new to cacti and I have read some documentation to solve my problems but I have not found anything to correct my problems.
I am currently on version 1.2.23, in a fresh installation, the only difference being that I added 2 devices and the graphs are not displayed with "Failed to open data file, poller may not have run yet" with a "(RRA Folder: Root)" error, when I go to my rra directory of /var/www/html/cacti, it is empty.
I noticed that when I go to the cacti GUI and go to Data collectors, the main poller is in "Heartbeat" status and I can't add a thread.
In my logs, no alert, just a "Graph not added due to no default value for overridable field.".
May I ask if anyone can help me?
I am new to cacti and I have read some documentation to solve my problems but I have not found anything to correct my problems.
I am currently on version 1.2.23, in a fresh installation, the only difference being that I added 2 devices and the graphs are not displayed with "Failed to open data file, poller may not have run yet" with a "(RRA Folder: Root)" error, when I go to my rra directory of /var/www/html/cacti, it is empty.
I noticed that when I go to the cacti GUI and go to Data collectors, the main poller is in "Heartbeat" status and I can't add a thread.
In my logs, no alert, just a "Graph not added due to no default value for overridable field.".
May I ask if anyone can help me?
- Attachments
-
- cacti-folder_state.png (352.82 KiB) Viewed 1650 times
-
- RRA-folder_empty.png (36.92 KiB) Viewed 1650 times
-
- data-collector_heartbeat.png (73.21 KiB) Viewed 1650 times
-
- graph_error.png (84.82 KiB) Viewed 1650 times
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
You do have a cronjob that starts the poller ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Problem with the poller, the data collection and the Cacti graphs
Hey,
as I said above, I'm new (a noob) despite reading the cacti docs, what is a "cronjob"? and does the user have to do it himself? Because in this case, I don't think I have one
as I said above, I'm new (a noob) despite reading the cacti docs, what is a "cronjob"? and does the user have to do it himself? Because in this case, I don't think I have one
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
Not sure which guide you followed. Here's a link to mine for a RockyLinux / RHEL 8 install:
https://www.urban-software.com/cacti-ho ... kylinux-8/
Basically you are probably missing this step:
Make sure to set the cron interval in the cacti settings to "1 Minute" as well.
https://www.urban-software.com/cacti-ho ... kylinux-8/
Basically you are probably missing this step:
Code: Select all
echo "*/1 * * * * apache php /var/www/html/cacti/poller.php &>/dev/null" >> /etc/cron.d/cacti
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
There is a bug in spine that was recently fixed. You might want to pull a fresh copy.
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?
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?
Re: Problem with the poller, the data collection and the Cacti graphs
Hi, thanks for this answer,
I wanted to know how to pull a fresh copy, because I used the wget command to take the packet from cacti and spine and I wanted to know what exactly I should do.
I wanted to know how to pull a fresh copy, because I used the wget command to take the packet from cacti and spine and I wanted to know what exactly I should do.
Re: Problem with the poller, the data collection and the Cacti graphs
Hi, I have Cacti Version 1.2.23 freshly installed, all worked fine until the next morning when I noticed that but Main Poller is in idle state. In the logs I found this:
02-02-2023 06:00:10 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:4, Time:0.0891
02-02-2023 06:00:10 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[819]:dsdebug_poller_bottom(), /lib/dsdebug.php[223]:rrdtool_cacti_compare(), /lib/rrd.php[2782]:CactiErrorHandler())
02-02-2023 06:00:10 - ERROR PHP NOTICE: Undefined index: step in file: /usr/share/cacti/lib/rrd.php on line: 2782
02-02-2023 06:00:10 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[819]:dsdebug_poller_bottom(), /lib/dsdebug.php[196]:filegroup(), CactiErrorHandler())
02-02-2023 06:00:10 - ERROR PHP WARNING: filegroup(): stat failed for /usr/share/cacti/rra/local_linux_machine_sscpusystem_18.rrd in file: /usr/share/cacti/lib/dsdebug.php on line: 196
02-02-2023 04:35:07 - POLLER: Poller[Main Poller] PID[62791] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.3 seconds have passed since the last poll!
Can you help me to fix it? Thanks in advance.
02-02-2023 06:00:10 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:4, Time:0.0891
02-02-2023 06:00:10 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[819]:dsdebug_poller_bottom(), /lib/dsdebug.php[223]:rrdtool_cacti_compare(), /lib/rrd.php[2782]:CactiErrorHandler())
02-02-2023 06:00:10 - ERROR PHP NOTICE: Undefined index: step in file: /usr/share/cacti/lib/rrd.php on line: 2782
02-02-2023 06:00:10 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[819]:dsdebug_poller_bottom(), /lib/dsdebug.php[196]:filegroup(), CactiErrorHandler())
02-02-2023 06:00:10 - ERROR PHP WARNING: filegroup(): stat failed for /usr/share/cacti/rra/local_linux_machine_sscpusystem_18.rrd in file: /usr/share/cacti/lib/dsdebug.php on line: 196
02-02-2023 04:35:07 - POLLER: Poller[Main Poller] PID[62791] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.3 seconds have passed since the last poll!
Can you help me to fix it? Thanks in advance.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
Well, that's weird... Checking.
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
Okay, on second thought, does your poller have access to the RRA directory? It seems like a permission issue. But still looking.
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
Just took a dig on the code, and yea, your RRDfiles have not been created yet, and if the poller is running, that means that there is a permissions problem.
In the mean time, you found a bug that I'm logging. So, congrats! As a rookie, you found a bug!!!
In the mean time, you found a bug that I'm logging. So, congrats! As a rookie, you found a bug!!!
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?
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?
-
- Posts: 25
- Joined: Thu Aug 25, 2022 2:49 am
Re: Problem with the poller, the data collection and the Cacti graphs
Hi guys, I also see such logs:
Cacti Add Graphs Utility, Version 1.2.23 (DB: 1.2.23), Copyright (C) 2004-2023 The Cacti Group
2023-02-21 14:05:06 - POLLER: Poller[1] PID[624922] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 303.8 seconds have passed since the last poll!
2023-02-21 14:10:13 - POLLER: Poller[1] PID[625457] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 307.5 seconds have passed since the last poll!
2023-02-21 15:25:10 - POLLER: Poller[1] PID[643371] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 305.6 seconds have passed since the last poll!
2023-02-21 15:30:13 - POLLER: Poller[1] PID[645391] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 303.0 seconds have passed since the last poll!
2023-02-21 15:55:06 - POLLER: Poller[1] PID[656703] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 305.5 seconds have passed since the last poll!
2023-02-21 16:20:05 - POLLER: Poller[1] PID[669914] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 303.4 seconds have passed since the last poll!
2023-02-21 17:15:06 - POLLER: Poller[1] PID[707809] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.2 seconds have passed since the last poll!
2023-02-21 17:50:05 - POLLER: Poller[1] PID[736202] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.0 seconds have passed since the last poll!
2023-02-21 18:40:06 - POLLER: Poller[1] PID[783725] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.4 seconds have passed since the last poll!
2023-02-21 19:50:06 - POLLER: Poller[1] PID[852157] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.9 seconds have passed since the last poll!
is that a problem or I can ignore that carefully?
Thanks!
P.S. Nothing was changed in cacti/server config.
Cacti Add Graphs Utility, Version 1.2.23 (DB: 1.2.23), Copyright (C) 2004-2023 The Cacti Group
2023-02-21 14:05:06 - POLLER: Poller[1] PID[624922] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 303.8 seconds have passed since the last poll!
2023-02-21 14:10:13 - POLLER: Poller[1] PID[625457] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 307.5 seconds have passed since the last poll!
2023-02-21 15:25:10 - POLLER: Poller[1] PID[643371] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 305.6 seconds have passed since the last poll!
2023-02-21 15:30:13 - POLLER: Poller[1] PID[645391] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 303.0 seconds have passed since the last poll!
2023-02-21 15:55:06 - POLLER: Poller[1] PID[656703] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 305.5 seconds have passed since the last poll!
2023-02-21 16:20:05 - POLLER: Poller[1] PID[669914] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 303.4 seconds have passed since the last poll!
2023-02-21 17:15:06 - POLLER: Poller[1] PID[707809] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.2 seconds have passed since the last poll!
2023-02-21 17:50:05 - POLLER: Poller[1] PID[736202] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.0 seconds have passed since the last poll!
2023-02-21 18:40:06 - POLLER: Poller[1] PID[783725] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.4 seconds have passed since the last poll!
2023-02-21 19:50:06 - POLLER: Poller[1] PID[852157] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 304.9 seconds have passed since the last poll!
is that a problem or I can ignore that carefully?
Thanks!
P.S. Nothing was changed in cacti/server config.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
You did not include enough info. If you are running spine, you might want to grab a fresh pull of 1.2.x as there was a serious bug. Until you post more infor, I don't have a clue.
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?
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?
-
- Posts: 25
- Joined: Thu Aug 25, 2022 2:49 am
Re: Problem with the poller, the data collection and the Cacti graphs
I'm not sure of I'm running spine. How can I check that? What additional info do you need for further investigation?TheWitness wrote: ↑Tue Feb 21, 2023 7:05 pm You did not include enough info. If you are running spine, you might want to grab a fresh pull of 1.2.x as there was a serious bug. Until you post more infor, I don't have a clue.
Thanks.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Problem with the poller, the data collection and the Cacti graphs
Read the doco. You'll get there.
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?
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?
-
- Posts: 25
- Joined: Thu Aug 25, 2022 2:49 am
Re: Problem with the poller, the data collection and the Cacti graphs
No, I use cmd.php. So which additional data do you need for further investigation?
Thanks.
- Attachments
-
- Capture.JPG (46.16 KiB) Viewed 1477 times
Who is online
Users browsing this forum: No registered users and 2 guests