Allow filtering of Health sensor discovery (#10485)

* Filter sensor types or by regexp

* codeclimate

* codeclimate
This commit is contained in:
PipoCanaja
2019-08-08 03:01:58 +02:00
committed by Tony Murray
parent fc281ccc4b
commit 9dfae2ff14
3 changed files with 85 additions and 2 deletions

View File

@@ -721,6 +721,35 @@ these are not provided by the vendor, the guess method can be disabled:
$config['sensors']['guess_limits'] = false;
```
# Ignoring Health Sensors
It is possible to filter some sensors from the configuration:
- Ignore all temperature sensors
```php
$config['disabled_sensors']['current'] = true;
```
- Filter all sensors matching regexp ``` '/PEM Iout/' ```.
```php
$config['disabled_sensors_regex'][] = '/PEM Iout/';
```
- Filter all 'current' sensors for Operating System 'vrp'.
```php
$config['os']['vrp']['disabled_sensors']['current'] = true;
```
- Filter all sensors matching regexp ``` '/PEM Iout/' ``` for
Operating System iosxe.
```php
$config['os']['iosxe']['disabled_sensors_regex'][] = '/PEM Iout/';
```
# Storage configuration
Mounted storage / mount points to ignore in discovery and polling.