Cacti / plugin_hmib

HMib Plugin for Cacti
GNU General Public License v2.0
5 stars 6 forks source link

poller_hmib.php expecting array but getting a boolean #3

Closed dsclassen closed 8 years ago

dsclassen commented 8 years ago

I'm seeing the following errors in the cacti log. I'm trying to understand the code and contribute fixes if possible, but others will likely fix this faster than me. Cheers.

2016-08-30 09:08:05 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php: 136 process_hosts)(/plugins/hmib/poller_hmib.php: 226 autoDiscoverHosts)(/plugins/hmib/poller_hmib.php: 182 cacti_snmp_walk)(/plugins/hmib/snmp.php: 353 key)(CactiErrorHandler)(/lib/functions.php: 4103 cacti_debug_backtrace)
2016-08-30 09:08:05 - ERROR PHP WARNING in Plugin 'hmib': key() expects parameter 1 to be array, boolean given in file: /www/cacti/plugins/hmib/snmp.php on line: 353

2016-08-30 09:08:05 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php: 136 process_hosts)(/plugins/hmib/poller_hmib.php: 226 autoDiscoverHosts)(/plugins/hmib/poller_hmib.php: 182 cacti_snmp_walk)(/plugins/hmib/snmp.php: 353 reset)(CactiErrorHandler)(/lib/functions.php: 4103 cacti_debug_backtrace)
2016-08-30 09:08:05 - ERROR PHP WARNING in Plugin 'hmib': reset() expects parameter 1 to be array, boolean given in file: /www/cacti/plugins/hmib/snmp.php on line: 353
cigamit commented 8 years ago

this is resolved now.