Trouble adding SNMP hosts

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Guest

Trouble adding SNMP hosts

Post by Guest »

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.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

All of the errors looking semi-normal, except the first one:
Warning: An error occurred, Quitting... in c:\inetpub\wwwroot\cacti\include\snmp_functions.php on line 68
Line 68 of 'include/snmp_functions.php' is:

Code: Select all

$temp_array = snmpwalkoid($hostname, $community, $oid);
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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests