New FreeBSD Install (1.2.17) - Poller Never Stops

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

Moderators: Developers, Moderators

Post Reply
jasonvp
Posts: 2
Joined: Fri Dec 31, 2021 4:16 pm

New FreeBSD Install (1.2.17) - Poller Never Stops

Post by jasonvp »

Hey folks -

I'm tripping my way through Cacti here and I think I mostly have it running in a FreeBSD jail. The issue at the moment is that the poller.php (and rrdtool) never stops running. And no data is pulled from my Cisco switch.

I'm only polling one device right now, so this should complete reasonably quickly. Initially I was getting these in the logs at the start of the crontab launch:

Code: Select all

2021-12-31 16:34:59 - ERROR PHP NOTICE: Trying to access array offset on value of type bool in file: /usr/local/share/cacti/lib/snmpagent.php  on line: 302
2021-12-31 16:34:59 - CMDPHP PHP ERROR NOTICE Backtrace:  (/poller.php[722]:snmpagent_poller_exiting(), /lib/snmpagent.php[302]:CactiErrorHandler())
2021-12-31 16:34:59 - ERROR PHP NOTICE: Trying to access array offset on value of type bool in file: /usr/local/share/cacti/lib/snmpagent.php  on line: 303
2021-12-31 16:34:59 - CMDPHP PHP ERROR NOTICE Backtrace:  (/poller.php[722]:snmpagent_poller_exiting(), /lib/snmpagent.php[303]:CactiErrorHandler())
2021-12-31 16:34:59 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyPollerRuntimeExceeding (CACTI-MIB), severity: high
2021-12-31 16:34:59 - SYSTEM STATS: Time:299.3788 Method:cmd.php Processes:1 Threads:1 Hosts:1 HostsPerProcess:1 DataSources:9 RRDsProcessed:0
For giggles, I just hand-jammed the jail's hostname and IP address into those lines (as strings). That quelled the error messages in the logs, but I'm still getting no data (and yes, I know I shouldn't have done that. Debugging... :-))

Code: Select all

stats# date
Fri Dec 31 16:47:25 EST 2021
stats# ps axuww
USER    PID %CPU %MEM   VSZ   RSS TT  STAT STARTED    TIME COMMAND
cacti 86771  0.0  0.0 47228 29460  -  SsJ  16:45   0:00.11 /usr/local/bin/php /usr/local/share/cacti/poller.php
cacti 86784  0.0  0.0 29856 15220  -  IJ   16:45   0:00.01 /usr/local/bin/rrdtool -
I'm running the slightly older version because that's the PKG available for FreeBSD at the moment. PHP version is 7.4 via FreeBSD's PKG command.

Something I may have missed during the install? Any other info I can provide to help track this down?

Thanks!
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: New FreeBSD Install (1.2.17) - Poller Never Stops

Post by macan »

Console -> configuration->settings->Poller tab-> Try to disable "SNMP Agent Support"
Let the Cacti grow!
jasonvp
Posts: 2
Joined: Fri Dec 31, 2021 4:16 pm

Re: New FreeBSD Install (1.2.17) - Poller Never Stops

Post by jasonvp »

As a follow-up:

This seems to have been a permissions problem with the RRD files. Even though I'd chown'ed them to the user cacti, it didn't matter because I'd originally created them as root. I reset everything, deleted the RRD files, and then re-created the device and data source in Cacti. Once I did that and ran the poller as user cacti, the files were created, and the poller now does its thing every five minutes.

I guess it implies there's something internal to the RRD files with regards to permissions? Or is it something else?
firstlove
Posts: 16
Joined: Thu Apr 21, 2022 2:23 am

Re: New FreeBSD Install (1.2.17) - Poller Never Stops

Post by firstlove »

macan wrote: Mon Jan 03, 2022 3:22 am Console -> configuration->settings->Poller tab-> Try to disable "SNMP Agent Support"
my cacti server version is 1.2.20 .the same notice; i tried this ,it's worked.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: New FreeBSD Install (1.2.17) - Poller Never Stops

Post by TheWitness »

Get to 1.2.21 as soon as possible.
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 6 guests