mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sensors - Allow changing RRD type in YAML and PHP sensor discovery (#14208)
* new row variant * syntax * syntax * DB * syntax * schema * test * allAdvaTests * Tests * Tests * Tests * missingMigration * missingMigration * Tests * Tests * Tests * Tests * tests * tests * tests * tests * tests * test * fix_Aos7 * fix snmprec arista * fix snmprec arista * fix snmprec arista * tests * merge_fix * aos7 backslash * aos7 * more * more * defaultValue * arista * typehint * tests * tests * voss * aos7 * aos7 * aos7 * testWithoutarista-mos_metamux48-c-0-16.json * tests * ciscosb * new tests with 2004 and only sensors module * adding wireless module again * adding wireless module again (cont) * airos * aos7 * arista * arista * bdcom * fortigate * fortigate * fortigate * ftos * ftos * tests on 1804 * tests once more * tests once more, cont * tests once more, cont * tests once more, cont * tests once more, cont * tests once more, cont * more * bdcom * comware * edgeosolt * enexus * arista-mos * removeAristaAgain * ies500_manual_edit * ies500_manual_edit * mni * volius * zywal * manually imported arista-mos * manually imported arista-mos * arista-mos test is triggering something ... * restoreArista * tests * tests * aristamos * ies52xxM_4206.json * revert linux_supermicro.json * revert linux_supermicro.json * benuos * fortiadc * rnx-updu
This commit is contained in:
@@ -124,6 +124,9 @@ are as follows:
|
||||
- `user_func` (optional): You can provide a function name for the
|
||||
sensors value to be processed through (i.e. Convert fahrenheit to
|
||||
celsius use `fahrenheit_to_celsius`)
|
||||
- `rrd_type` (optional): You can change the type of the RRD file that will be created to
|
||||
store the data. By default, type GAUGE is used. More details can be found here:
|
||||
https://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html
|
||||
|
||||
For `options:` you have the following available:
|
||||
|
||||
@@ -262,6 +265,9 @@ then passed to `discover_sensor()`.
|
||||
to celsius use `fahrenheit_to_celsius`)
|
||||
- $group = Defaults to null. Groups sensors together under in the
|
||||
webui, displaying this text.
|
||||
- $rrd_type = Default to 'GAUGE'. Allows to change the type of the RRD
|
||||
file created for this sensor. More details can be found here in the
|
||||
RRD documentation: https://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html
|
||||
|
||||
For the majority of devices, this is all that's required to add
|
||||
support for a sensor. Polling is done based on the data gathered using
|
||||
|
Reference in New Issue
Block a user