Cacti not updaing interfaces

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

Moderators: Developers, Moderators

Post Reply
glb03
Posts: 4
Joined: Mon Aug 17, 2009 2:23 pm

Cacti not updaing interfaces

Post by glb03 »

We are using a different interface on our Gateway 7206, any other time in the past I have been able to disable a device and re-enable the device and it would update the interfaces (in other words do a snmp walk). Anyways, are there any other ways to get Cacti to update interfaces? Thanks.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Change the reindex method
2) manually reindex it (click the green circle next to the associated data query).
3) run \cacti\cli\poller_reindex_hosts.php
glb03
Posts: 4
Joined: Mon Aug 17, 2009 2:23 pm

Post by glb03 »

Thanks for the help, I was able to do the first two steps, but when I do the last step I get this.

/var/www/html/cacti/cli/poller_reindex_hosts.php: line 1: ?php: No such file or directory
/var/www/html/cacti/cli/poller_reindex_hosts.php: line 2: /backup: is a directory
/var/www/html/cacti/cli/poller_reindex_hosts.php: line 3: +-------------------------------------------------------------------------+: command not found
/var/www/html/cacti/cli/poller_reindex_hosts.php: line 4: syntax error near unexpected token `|'
/var/www/html/cacti/cli/poller_reindex_hosts.php: line 4:


I have tried to google for the answer, but have been unable to find a solution.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Those were all your options to solve the issue, not steps ;)
User avatar
TheWitness
Developer
Posts: 17080
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your script has a hosed up PHP tag. If you open the script and search for the following:

Code: Select all

?php
You need to replace it by:

Code: Select all

<?php
Someone edited a file and accidentally saved it with, at least one character removed :oops:

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?
glb03
Posts: 4
Joined: Mon Aug 17, 2009 2:23 pm

Post by glb03 »

I was able to resolve the error by using the exact path to php. Cacti is still not updating my interfaces though, any other suggestion would be greatly appreciated.
glb03
Posts: 4
Joined: Mon Aug 17, 2009 2:23 pm

Post by glb03 »

OK I finally got it resolve by deleting all indexing, readding the indexing, and running the command. Thanks everyone for the help.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests