Can Cacti reference interfaces by ip address?

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

Moderators: Developers, Moderators

Post Reply
geekgerl
Posts: 1
Joined: Mon Feb 06, 2006 1:30 pm
Location: Chicago, IL

Can Cacti reference interfaces by ip address?

Post by geekgerl »

Hello,

I work for an ISP, and we'd like to switch from MRTG to Cacti. We currently have MRTG configured to reference interfaces by ip address instead of by SNMP Interface Number. The reason we do this is so that we won't lose months of historical data when we add a new card to our router or switch (which causes the Interface Numbers to change on some or all interfaces).

Does Cacti have a similar setting we can enable to track by ip?

Thanks!

-Laura
tgk
Posts: 28
Joined: Sat Mar 11, 2006 10:46 pm

Post by tgk »

The way cacti references interfaces by interface number is programmed in the xml query in resource/snmp_queries/interface.xml
I guess you could accomplish what you want by creating a new snmp query, which uses the IP as an index (ifIP) instead of the interface number (ifIndex).
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The only problem is that if you have an interface with more than 1 IP Address, it will only display the last.

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?
Mark Susol
Posts: 8
Joined: Tue Mar 07, 2006 12:15 am

Post by Mark Susol »

ugh, so there's no way currently to use "eth0:abc" and "eth0:def" representing two IP virtual hosts on the same interface?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cacti can do sub-interfaces, the only question is does your SNMP agent? If you walk the ifIndexes MIB, you will get your answer.

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?
Mark Susol
Posts: 8
Joined: Tue Mar 07, 2006 12:15 am

Post by Mark Susol »

I'll send you my snmp walk results by PM, i'm not sure which lines you are interested in seeing to know for sure. Appears eth0 is on index2, and the IPs point to the same index. I'm not a snmp expert.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

These are the only interfaces that the standard Cacti templates will capture.

IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: tunnel(131)

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?
Post Reply

Who is online

Users browsing this forum: manel and 1 guest