I have just installed cacti on Win2000 with IIS. When trying to add my first host to monitor, I receive the following errors:
Warning: An error occurred, Quitting... in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 68
Warning: Variable passed to reset() is not an array or object in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 71
Warning: Variable passed to key() is not an array or object in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 71
Warning: An error occurred, Quitting... in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 68
Warning: Variable passed to reset() is not an array or object in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 71
Warning: Variable passed to key() is not an array or object in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 71
Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\cacti\include\snmp_functions.php:68) in c:\inetpub\wwwroot\cacti\snmp.php on line 64
Don't know if I did something wrong. I would appreciate any help out there. Thanks.
Trouble adding SNMP hosts
Moderators: Developers, Moderators
All of the errors looking semi-normal, except the first one:
Which means PHP is having sort of internal problem with the 'snmpwalkoid' function (and probably the other snmp* functions as well).
Since SNMP support in win32 works differently (it's precompiled), you can't try re-compiling the SNMP module.
If I were you I would first try and replacing the 'ext_snmp.dll' file (not sure about the filename). I would then try using the net-snmp package under win32. I have never done this, but I have heard that this is possible.
Tell me how you make out.
-Ian
Line 68 of 'include/snmp_functions.php' is:Warning: An error occurred, Quitting... in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 68
Code: Select all
$temp_array = snmpwalkoid($hostname, $community, $oid);
Since SNMP support in win32 works differently (it's precompiled), you can't try re-compiling the SNMP module.
If I were you I would first try and replacing the 'ext_snmp.dll' file (not sure about the filename). I would then try using the net-snmp package under win32. I have never done this, but I have heard that this is possible.
Tell me how you make out.
-Ian
Who is online
Users browsing this forum: No registered users and 5 guests