Cacti 0.8.7f Error while adding Device

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Cacti 0.8.7f Error while adding Device

Post by sukanta »

After Fresh Installation as well as after upgrade into Version 0.8.7f getting following error when adding new device...
No error found after enabling log...
Tech support attached...

I have also tried with PHP 5.2.9 but same problem where is same setting

Version 0.8.7e is working fine....

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Notice: Undefined variable: tmp_array in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: implode() [function.implode]: Invalid arguments passed in D:\xampplite\htdocs\cacti\lib\snmp.php on line 391

Warning: substr_count() expects parameter 1 to be string, array given in D:\xampplite\htdocs\cacti\lib\snmp.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at D:\xampplite\htdocs\cacti\lib\snmp.php:391) in D:\xampplite\htdocs\cacti\host.php on line 161
Attachments
Console -_ Utilities -_ Tec...pdf
(198.48 KiB) Downloaded 147 times
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Edit lib/snmp.php line 391 and change tmp_array to temp_array. Can u log a bug?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Post by sukanta »

Thanks for prompt response..After that also getting following error...

Warning: substr_count() expects parameter 1 to be string, array given in D:\xampplite\htdocs\cacti\lib\snmp.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at D:\xampplite\htdocs\cacti\lib\snmp.php:131) in D:\xampplite\htdocs\cacti\host.php on line 161
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Grab an svn copy of lib/snmp.php in about 15 minutes. It will resolve this issue.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Post by sukanta »

Please share the path in SVN as there are many copy....
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Post by sukanta »

After replacing the snmp.php file from cacti\branches\0.8.7\lib getting the following error in pool:

Warning: substr_count() expects parameter 1 to be string, array given in D:\xamp
plite\htdocs\cacti\lib\snmp.php on line 246
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Update: this user stated the SVN copy fixed their issue.

That being the case, I have a hunch either you downloaded the wrong copy, or have a misconfiguration with php. please re-follow the installation guide paying close attention to the php and mysql setup procedures.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Nope. Different function. Committing right now.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
firehawk007
Posts: 2
Joined: Wed Jun 02, 2010 3:57 pm

Getting following error

Post by firehawk007 »

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/web/cacti/lib/snmp.php:584) in /usr/local/apache/web/cacti/host.php on line 310

Any help will be greatly appreciated.

Posted in wrong Topic.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests