Quoting Ondřej Surý <[email protected]>:
The error comes from the fact that php5-snmp was downgraded to 5.3.3.
You are correct. I decided to examine the logs to see what was happening after the in-place upgrade to wheezy, but before the php5-snmp downgrade. Here'a a sample of Cacti's poller-error.log just after the upgrade:
Mar 17 23:20:01 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/pam_auth.so' - /usr/lib/php5/20100525+lfs/pam_auth.so: cannot open shared object file: No such file or directory in Unknown on line 0 Mar 17 23:20:01 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/pam_auth.so' - /usr/lib/php5/20100525+lfs/pam_auth.so: cannot open shared object file: No such file or directory in Unknown on line 0 Mar 17 23:20:01 PHP Notice: Undefined index: device_threads in /usr/share/cacti/site/lib/functions.php on line 441 Mar 17 23:20:01 PHP Notice: Undefined index: device_threads in /usr/share/cacti/site/lib/functions.php on line 441 Mar 17 23:20:01 PHP Notice: Undefined index: device_threads in /usr/share/cacti/site/lib/functions.php on line 441
So, back then it wasn't missing snmp.so, but pam_auth.so. The above pattern of errors kept repeating until 06:00 AM, after which only the first error regarding pam_auth.so remained. That one went on for several days. After that I got Cacti to work again by downgrading php5-snmp to 5.3.3. The errors about the missing snmp.so started after I upgraded back to 5.4.4-14 for the sake of this bug report.
There must be something else going on and it needs to be debugged with appropriate php5-snmp package (e.g. 5.4.4-14).
I've upgraded it again around the time I submitting this bug report and since then Cacti hasn't worked. No more errors in the poller-error.log either, although the cacti.log keeps repeating these error ('atheris' is a workstation):
03/28/2013 03:40:02 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'localhost', and OID:'.1.3.6.1.2.1.1.3.0' 03/28/2013 03:40:02 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'udp6:atheris', and OID:'.1.3.6.1.2.1.1.3.0' 03/28/2013 03:40:03 AM - SYSTEM STATS: Time:1.3080 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:106 RRDsProcessed:1
Interestingly, I tried downgrading php5-snmp to v5.3.3 a second time, but that no longer makes a difference.
Cheers, Jaap -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

