lupick wrote:I've tried with cacti 0.87a ver on RHEL linuxbox.cigamit wrote:You are going to find that a lot of your old scripts no longer work in v0.8.7, since instead of including config.php, you need to include global.php. Also, certain functions have changed and require more arguments to support SNMP v3.
Attached is a version that should work in v0.8.7.
if I run:
[root@linuxbox scripts]# php ./win_services.php winhost.domain.name public 2 9 index
PHP Fatal error: Call to undefined function read_config_option() in /var/www/html/cacti/lib/snmp.php on line 233
Any Ideas how to solve it?!?
thanks
L.
Full debug:
PHP Notice: Undefined variable: config in /var/www/html/cacti/lib/snmp.php on line 33
PHP Notice: Use of undefined constant SNMP_POLLER - assumed 'SNMP_POLLER' in /var/www/html/cacti/scripts/win_services_ori.php on line 24
PHP Warning: Missing argument 10 for cacti_snmp_walk(), called in /var/www/html/cacti/scripts/win_services_ori.php on line 24 and defined in /var/www/html/cacti/lib/snmp.php on line 225
PHP Notice: Use of undefined constant SNMP_POLLER - assumed 'SNMP_POLLER' in /var/www/html/cacti/lib/snmp.php on line 225
PHP Fatal error: Call to undefined function read_config_option() in /var/www/html/cacti/lib/snmp.php on line 233