Device interface manual reindexation fails in Cacti 0.8.7e

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

Moderators: Developers, Moderators

Post Reply
User avatar
GLR
Cacti User
Posts: 55
Joined: Mon Jul 21, 2008 5:45 am
Location: Paris suburbs, France
Contact:

Device interface manual reindexation fails in Cacti 0.8.7e

Post by GLR »

In Cacti 0.8.7e + PA 2.5 with spine 0.8.7e : When trying to reindex the device interfaces :

Image

I get the following warnings and the query fails :

Code: Select all

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 280

Warning: Invalid argument supplied for foreach() in /usr/share/cacti/lib/snmp.php on line 486

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/lib/snmp.php:280) in /usr/share/cacti/graphs_new.php on line 45
Is it a new bug or ?
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is not known. Does this happen for each host?
Reinhard
User avatar
GLR
Cacti User
Posts: 55
Joined: Mon Jul 21, 2008 5:45 am
Location: Paris suburbs, France
Contact:

Post by GLR »

Yes !
Do you also encounter the same issue ?
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

GLR wrote:Yes !
Do you also encounter the same issue ?
Yes. No visible errors in the UI, but I just checked my php error log -- it's 25MB! Filled with two types of errors:

Code: Select all

[09-Jul-2009 02:20:42] PHP Warning:  Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 486
[09-Jul-2009 02:20:42] PHP Warning:  Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\lib\snmp.php on line 280
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

Post by 9Nails »

GLR wrote:Do you also encounter the same issue ?
Same here. Any solutions for this?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I guess no one has created a bug for it yet. I have now.

http://bugs.cacti.net/view.php?id=1506
RonaldPost
Posts: 3
Joined: Thu Jul 16, 2009 4:40 am
Location: Netherlands

Post by RonaldPost »

Applied suggested patch from BorisL.

The PHP warning are now gone, though I still get:
Attachments
data-query.png
data-query.png (11.57 KiB) Viewed 7985 times
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

Post by 9Nails »

I need a bit more help please. I'm still a Linux newb. And I'm not familiar with the patch process.

Are these the steps that I use to apply a patch?

(I'm guessing at the steps based on what I've read here: http://www.cacti.net/download_patches.p ... ion=0.8.7d )

Code: Select all

cd /tmp
wget http://bugs.cacti.net/file_download.php?file_id=592&type=bug
mv file_download.php\?file_id\=592 snmp.php.patch
cp /var/www/html/lib/snmp.php /tmp/snmp.php.bak
cp snmp.php.patch /var/www/html
cd /var/www/html
patch -p1 -N < snmp.php.patch
When I try that, I get:
[root@cacti html]# patch -p1 -N < snmp.php.patch
patch: **** Only garbage was found in the patch input.
jbarbieri
Cacti User
Posts: 101
Joined: Tue May 24, 2005 8:46 am
Location: Rochester, New Hampshire
Contact:

Post by jbarbieri »

Thank you for posting this, I just got this error too, and was wondering if it was me or others.


Cacti 0.8.7e and Spine 0.8.7d, no PIA or anything.
SergeyK
Posts: 1
Joined: Wed Aug 05, 2009 11:40 am

Post by SergeyK »

Hello,
Can you tell me how I can install patch on windows. if I simply replace the file error is remain.
Thank you.

P.S. I apologize for my english
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

walkermore
Posts: 1
Joined: Fri Mar 26, 2010 6:53 am

Re: Device interface manual reindexation fails in Cacti 0.8.

Post by walkermore »

Thank you for posting this, I just got this error too, and was wondering if it was me or others.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests