mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Merge pull request #2862 from laf/issue-2859
Added ability to ignore device sensors from entity mib
This commit is contained in:
@@ -406,6 +406,17 @@ Entries defined in `rewrite_if` are being replaced completely.
|
||||
Entries defined in `rewrite_if_regexp` only replace the match.
|
||||
Matches are compared case-insensitive.
|
||||
|
||||
#### Entity sensors to be ignored
|
||||
|
||||
Some devices register bogus sensors as they are returned via SNMP but either don't exist or just don't return data.
|
||||
This allows you to ignore those based on the descr field in the database. You can either ignore globally or on a per
|
||||
os basis.
|
||||
|
||||
```php
|
||||
$config['bad_entity_sensor_regex'][] = '/Physical id [0-9]+/';
|
||||
$config['os']['cisco']['bad_entity_sensor_regex'] = '/Physical id [0-9]+/';
|
||||
```
|
||||
|
||||
#### Storage configuration
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user