Cacti Poller Not Run Yet

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

Moderators: Developers, Moderators

Post Reply
djchrist74
Posts: 1
Joined: Mon Mar 22, 2021 5:02 pm

Cacti Poller Not Run Yet

Post by djchrist74 »

I have a new install for Cacti version 1.2.16 on an Ubuntu 20.10 server. I'm new to linux but working on it. I just added a couple devices and I noticed when I go to graphs it says Cacti poller not run yet. I checked a couple things looking at other posts being I have the cron job set to 5 minutes and I verified that matches in Cacti. Below is some info:

I used the below link to set everything up and the only thing different is I had to use PHP 8.0 instead of 7.4 like he had I assume because I used Ubuntu 20.10:

https://medium.com/make-it-easy/how-to- ... 290c2b3158

At the end when I setup the cron job I used the below:

*/5 * * * * php /var/www/html/poller.php > /dev/null 2>&1

This is what I see in my Cacti logs and I am not sure this has anything to do with it:

2021-03-22 17:36:24 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021-03-22 17:36:24 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /var/www/html/lib/mib_cache.php:344 Stack trace: #0 /var/www/html/lib/mib_cache.php(384): MibCache->delete() #1 /var/www/html/lib/snmpagent.php(132): MibCache->replace() #2 /var/www/html/lib/api_device.php(845): snmpagent_api_device_new() #3 /var/www/html/host.php(270): api_device_save() #4 /var/www/html/host.php(60): form_save() #5 {main} thrown in file: /var/www/html/lib/mib_cache.php on line: 344
2021-03-22 17:36:16 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021-03-22 17:36:16 - ERROR PHP ERROR: Uncaught ArgumentCountError: Too few arguments to function Net_Ping::ping_error_handler(), 4 passed and exactly 5 expected in /var/www/html/lib/ping.php:76 Stack trace: #0 [internal function]: Net_Ping->ping_error_handler() #1 /var/www/html/lib/ping.php(417): socket_recv() #2 /var/www/html/lib/ping.php(640): Net_Ping->ping_udp() #3 /var/www/html/lib/api_device.php(1178): Net_Ping->ping() #4 /var/www/html/host.php(139): api_device_ping_device() #5 {main} thrown in file: /var/www/html/lib/ping.php on line: 76
2021-03-22 17:35:27 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021-03-22 17:35:27 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /var/www/html/lib/mib_cache.php:344 Stack trace: #0 /var/www/html/lib/mib_cache.php(384): MibCache->delete() #1 /var/www/html/lib/snmpagent.php(132): MibCache->replace() #2 /var/www/html/lib/api_device.php(845): snmpagent_api_device_new() #3 /var/www/html/host.php(270): api_device_save() #4 /var/www/html/host.php(60): form_save() #5 {main} thrown in file: /var/www/html/lib/mib_cache.php on line: 344

Thanks for any help you can give me.

Dave
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti Poller Not Run Yet

Post by cigamit »

You need to downgrade your PHP, PHP 8 is a little bit too bleeding edge (I think we fixed most of those in 1.2.17 if I recall, but thats not out yet)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests