Problem about Poller and Data Collectors

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
josephlui0912
Posts: 10
Joined: Mon Jan 09, 2023 11:31 am

Problem about Poller and Data Collectors

Post by josephlui0912 »

Hi all.
I am a new user and now I try to install a new Cacti application to check if Cacti is good enough for our office. After installation, I found that no graph had been displayed with the error poller had not been enabled. I think the problem is due to the Data Collectors' problem as the status of the data collector shows the message "Heartbeat". I Googled the solution and try to fix it by myself but the status is still the same. May I ask if anyone can help me?
Attachments
Poller Setting
Poller Setting
poller setting.jpg (657.43 KiB) Viewed 1104 times
Crontab Setting
Crontab Setting
Crontab Setting.png (204.41 KiB) Viewed 1104 times
Log
Log
Log.png (190.54 KiB) Viewed 1104 times
Graph Error
Graph Error
Graph Error.png (57.96 KiB) Viewed 1104 times
Data Collector Error
Data Collector Error
Data Collector Error.png (32.02 KiB) Viewed 1104 times
cigamit
Developer
Posts: 3350
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Problem about Poller and Data Collectors

Post by cigamit »

Your cron is wrong. It appears to have an extra 1 on the front of it.
josephlui0912
Posts: 10
Joined: Mon Jan 09, 2023 11:31 am

Re: Problem about Poller and Data Collectors

Post by josephlui0912 »

Hi cigamit,
Thank you for your information and I tried to update the crontab file and the status is still the same.
cigamit
Developer
Posts: 3350
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Problem about Poller and Data Collectors

Post by cigamit »

Do you see a SYSTEM STATS line in the cacti log? If not, your poller is still not running, and it is most likely still your cron entry. You might try using "crontab -e" as root to edit the cron file instead of manually editing the /etc/crontab file.
josephlui0912
Posts: 10
Joined: Mon Jan 09, 2023 11:31 am

Re: Problem about Poller and Data Collectors

Post by josephlui0912 »

cigamit wrote: Thu Jan 12, 2023 3:16 pm Do you see a SYSTEM STATS line in the cacti log? If not, your poller is still not running, and it is most likely still your cron entry. You might try using "crontab -e" as root to edit the cron file instead of manually editing the /etc/crontab file.
I checked the log and cannot find any log related to the keywords. I tried to update the information you provide but still with the same results.
Attachments
cacti crontab -e configuration
cacti crontab -e configuration
Screenshot_20230112_051232.png (150.68 KiB) Viewed 1089 times
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem about Poller and Data Collectors

Post by TheWitness »

1) use cactid systemd service
2) run the convert_innodb.php with the --innodb and --dynamic options

With syslog so large, you may have to increase the row count on converting the syslog table.
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?
cigamit
Developer
Posts: 3350
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Problem about Poller and Data Collectors

Post by cigamit »

So it seems like you are logged in as joseph, and editing your own crontab (according to the screen shot). Did you swap to the root user and then run the command?

Also, you don't need 2 of the pollers running. Remove the first one, and then remove the word "root" from the second, as you shouldn't be specifying the user when editing a user crontab.
josephlui0912
Posts: 10
Joined: Mon Jan 09, 2023 11:31 am

Re: Problem about Poller and Data Collectors

Post by josephlui0912 »

TheWitness wrote: Thu Jan 12, 2023 5:55 pm 1) use cactid systemd service
2) run the convert_innodb.php with the --innodb and --dynamic options

With syslog so large, you may have to increase the row count on converting the syslog table.
Thank you for your help and I am allowed to monitor those devices. Thank you.

BTW, how should I set send an email again after the first email (with the message that a device is down) for maybe 10 minutes?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests