Performing Re-Indexing nightly

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

Moderators: Developers, Moderators

Post Reply
apharas
Posts: 18
Joined: Mon Oct 10, 2005 12:25 pm

Performing Re-Indexing nightly

Post by apharas »

Is there a way to have the cacti re-index the system nightly. I have a number of devices that have new interfaces added reguarly but there is not an oid that lists the number of interfaces. So what I need is a way to run through all my devices everynight and have them re-indexed. And preferably a way to log changes. If anyone knows if this is possible or any ideas please let me know.

Thanks
--
Alex
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

In the Cacti SVN, get the file poller_reindex_hosts.php. This will do what you want.
rkramer
Cacti User
Posts: 54
Joined: Fri Jun 03, 2005 12:25 pm

Post by rkramer »

http://svn.cacti.net/cgi-bin/viewcvs.cg ... _hosts.php

depending on your installation this may or may not work... I don't run the php snmp, instead I have a standalone snmp installation, and this script fails to detect that (lots of

Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)


type errors.)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You can ignore MIB errors. Cacti does not use them.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests