doc: Added FAQ for why interfaces are missing from overall traffic graphs (#4696)

This commit is contained in:
Neil Lathwood
2016-10-02 08:27:12 +01:00
committed by Daniel Preussker
parent 06b0906aae
commit f14335b7a5

View File

@@ -20,6 +20,7 @@ source: Support/FAQ.md
- [Things aren't working correctly?](#faq18)
- [What do the values mean in my graphs?](#faq21)
- [Why does a device show as a warning?](#faq22)
- [Why do I not see all interfaces in the Overall traffic graph for a device?](#faq23)
### Developing
- [How do I add support for a new OS?](#faq8)
@@ -169,6 +170,39 @@ here are those values:
This is indicating that the device has rebooted within the last 24 hours (by default). If you want to adjust this
threshold then you can do so by setting `$config['uptime_warning']` in config.php. The value must be in seconds.
#### <a name="faq23"> Why do I not see all interfaces in the Overall traffic graph for a device?</a>
By default numerous interface types and interface descriptions are excluded from this graph. The excluded defailts are:
```php
$config['device_traffic_iftype'][] = '/loopback/';
$config['device_traffic_iftype'][] = '/tunnel/';
$config['device_traffic_iftype'][] = '/virtual/';
$config['device_traffic_iftype'][] = '/mpls/';
$config['device_traffic_iftype'][] = '/ieee8023adLag/';
$config['device_traffic_iftype'][] = '/l2vlan/';
$config['device_traffic_iftype'][] = '/ppp/';
$config['device_traffic_descr'][] = '/loopback/';
$config['device_traffic_descr'][] = '/vlan/';
$config['device_traffic_descr'][] = '/tunnel/';
$config['device_traffic_descr'][] = '/bond/';
$config['device_traffic_descr'][] = '/null/';
$config['device_traffic_descr'][] = '/dummy/';
```
If you would like to re-include l2vlan interfaces for instance, you first need to `unset` the config array and set your options:
```php
unset($config['device_traffic_iftype']);
$config['device_traffic_iftype'][] = '/loopback/';
$config['device_traffic_iftype'][] = '/tunnel/';
$config['device_traffic_iftype'][] = '/virtual/';
$config['device_traffic_iftype'][] = '/mpls/';
$config['device_traffic_iftype'][] = '/ieee8023adLag/';
$config['device_traffic_iftype'][] = '/ppp/';
```
#### <a name="faq8"> How do I add support for a new OS?</a>
The easiest way to show you how to do that is to link to an existing pull request that has been merged in on [GitHub](https://github.com/librenms/librenms/pull/352/files)