Feature: selected_ports per OS. Fixed layout of example MySQL table. (#7674)

* selected_ports per OS. Fixed layout of example MySQL table.

* Better table markdown.
This commit is contained in:
Zmegolaz
2017-11-09 13:57:00 +01:00
committed by Neil Lathwood
parent c2ca68a6ec
commit e31b884cc9
2 changed files with 3 additions and 4 deletions

View File

@@ -82,13 +82,12 @@ LibreNMS server. Something like pdns-recursor can be used and then configure `/e
By default the polling ports module will walk ifXEntry + some items from ifEntry regardless of the port. So if a port is marked as deleted because you don't want to see them
or it's disabled then we still collect data. For the most part this is fine as the walks are quite quick. However for devices with a lot of ports and good % of those are
either deleted or disabled then this approach isn't optimal. So to counter this you can enable 'selected port polling' per device within the edit device -> misc section or by
globally enabling it (not recommended): `$config['polling']['selected_ports'] = true;`.
globally enabling it (not recommended): `$config['polling']['selected_ports'] = true;`. You can also set it for a specific OS: `$config['os']['ios']['polling']['selected_ports'] = true;`.
If you would like to see if you should turn this on then run this query in MySQL: `select device_id, count(*) as total from ports where deleted=1 group by device_id order by total desc;`. You will see output like the following:
+-----------+-------+
| device_id | total |
+-----------+-------+
| --------: | ----: |
| 128 | 339 |
| 92 | 56 |
| 41 | 41 |