Filtering out interfaces

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

Moderators: Developers, Moderators

Post Reply
peejayess
Posts: 3
Joined: Tue Jan 19, 2021 2:55 am

Filtering out interfaces

Post by peejayess »

Hi,

When I import a new device with add_graphs.php, graphs are created that I'm not interested (certain VLAN interfaces, Bluetooth interfaces etc.). Is it possible to have these filtered out when the device is added? I feel like the automation graph rules are what I'm looking for, but somehow these aren't respected when a new device is added. The rule I've created looks as follows:

Screenshot 2021-01-19 090927.png
Screenshot 2021-01-19 090927.png (51.69 KiB) Viewed 633 times

"Matching Objects" shows a lot of matches from SNMP Interfaces Statistics, so the regex is fine. What am I missing here?

I've used the automation rules to place a device from a certain location at the correct place on a tree by filtering for a string in the hostname which worked as expected.
peejayess
Posts: 3
Joined: Tue Jan 19, 2021 2:55 am

Re: Filtering out interfaces

Post by peejayess »

FYI: this is using Cacti version 1.2.16
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Filtering out interfaces

Post by TheWitness »

Sure, well add more conditions to remove those additional interfaces. It's SQL which includes the ability to use regular expressions and the word "NOT" (aka NOT REGEXP "(blah|blah|blah)")
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?
peejayess
Posts: 3
Joined: Tue Jan 19, 2021 2:55 am

Re: Filtering out interfaces

Post by peejayess »

The issue turned out to be a separate shell script which added extra monitored interfaces to the device. When I do it correctly it's not wrong anymore :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests