Disable polling by OS

I am trying to exclude specific operating systems from being displayed. I am trying to exclude printers and windows machines. The code I am using in my config.php does not seem to be working. Am I missing anything?
$config[‘os’][‘Microsoft Windows’] = 0;
$config[‘os’][‘Symbol AP’] = 0;
$config[‘os’][‘Xerox Printer’] = 0;
$config[‘os’][‘HP Print server’] = 0;
$config[‘os’][‘Lanier Printer’] = 0;
$config[‘os’][‘OKI Printer’] = 0;

./validate.php

Component Version
LibreNMS 1.37-106-ga1999c4
DB Schema 247
PHP 7.0.28-0ubuntu0.16.04.1
MySQL 10.0.34-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.6.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX] Check your poll log and see: http://docs.librenms.org/Support/Performance/

Why not just delete the devices?

Because they keep coming back.

Because you’ve got auto discovery enabled, look at the eventlog for the device and it will tell you why it was added.

Most likely just need to blacklist the IPs from auto discovery - it’s in the docs.

Laf,

Thank you for your reply. Please excuse my ignorance where is the file located and how do I blacklist the IPs?

Check here
https://docs.librenms.org/#Extensions/Auto-Discovery/#exclusions

I have seen this page a thousand times and I don’t know how I missed that!!! Thank you!!

1 Like