I have these controlled/uncontrolled interfaces that are being polled on my Cisco devices. What is the proper way to remove all of the graphs and data fro the existing switches for those unwanted interfaces? How can I keep new devices from adding those interfaces?
This works for me in /opt/librenms/config.php:
# Interfaces to be ignored # --controlled & --uncontrolled interfaces on Cisco Catalyst 4500X etc. $config['bad_if_regexp'] = '/controlled$/';
Cool, I added that. From what I can tell that only keeps the interfaces from being polled. How can I remove all of the data of those interfaces?
Do you mean the RRD graphs for those ports, or something else?
If it’s just the RRD graphs you should be able to go to the relevant folder under /opt/librenms/rrd/ and delete the port-idnnnn.rrd files which haven’t updated since the configuration change (I don’t know how many devices you are polling which would be affected by this, so it may be impractical).
Otherwise the only thing I can think of would be to delete the device and re-add it into LibreNMS now you have the bad_if_regexp configured in config.php. Not sure…
Enable rrd file cleanup to remove files that haven’t been modified in x days:
$config['rrd_purge'] = 90;
Thanks! I didn’t know about that option