librenms/tests/data/rs.json
PipoCanaja 8e3fe223ef
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
2022-10-25 08:31:02 -05:00

476 lines
19 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.2566.127.1.2.167",
"sysDescr": "Sx800 OSEDelta 4.6",
"sysContact": "<private>",
"version": "1.46.2",
"hardware": "Sx800 OSEDelta 4.6",
"features": null,
"location": null,
"os": "rs",
"type": "network",
"serial": "000000",
"icon": "rs.svg"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.2566.127.1.2.167.4.1.1.1.64.1",
"sensor_index": "cmdExcFrequency.a",
"sensor_type": "rs",
"sensor_descr": "Frequency",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 602000000,
"sensor_limit": 632100000,
"sensor_limit_warn": null,
"sensor_limit_low": 571900000,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.2566.127.1.2.167.4.1.2.5.0",
"sensor_index": "forwardPower.0",
"sensor_type": "rs",
"sensor_descr": "Output Power",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.2566.127.1.2.167.4.1.2.6.0",
"sensor_index": "reflectedPower.0",
"sensor_type": "rs",
"sensor_descr": "Reflected Power",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.11.0",
"sensor_index": "dvbSTActiveInput.0",
"sensor_type": "dvbSTActiveInput",
"sensor_descr": "Active Input",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTActiveInput"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.6.0",
"sensor_index": "dvbSTFault.0",
"sensor_type": "dvbSTFault",
"sensor_descr": "Fault status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTFault"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.8.0",
"sensor_index": "dvbSTInput1OK.0",
"sensor_type": "dvbSTInput1OK",
"sensor_descr": "Input 1",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTInput1OK"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.9.0",
"sensor_index": "dvbSTInput2OK.0",
"sensor_type": "dvbSTInput2OK",
"sensor_descr": "Input 2",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTInput2OK"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.10.0",
"sensor_index": "dvbSTLocalMode.0",
"sensor_type": "dvbSTLocalMode",
"sensor_descr": "Configuration Mode",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTLocalMode"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.4.0",
"sensor_index": "dvbSTRFPresent.0",
"sensor_type": "dvbSTRFPresent",
"sensor_descr": "Output Power",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTRFPresent"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.3.0",
"sensor_index": "dvbSTTransmitterOpMode.0",
"sensor_type": "dvbSTTransmitterOpMode",
"sensor_descr": "Transmitter Operational Mode",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTTransmitterOpMode"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.19831.1.1.1.1.1.7.0",
"sensor_index": "dvbSTWarning.0",
"sensor_type": "dvbSTWarning",
"sensor_descr": "Warning status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "dvbSTWarning"
}
],
"state_indexes": [
{
"state_name": "dvbSTActiveInput",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTActiveInput",
"state_descr": "Input 1",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "dvbSTActiveInput",
"state_descr": "HierarchicalModulation",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "dvbSTFault",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTFault",
"state_descr": "Fault",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "dvbSTFault",
"state_descr": "OK",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "dvbSTInput1OK",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTInput1OK",
"state_descr": "Ok",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "dvbSTInput1OK",
"state_descr": "No Signal",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "dvbSTInput2OK",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTInput2OK",
"state_descr": "Ok",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "dvbSTInput2OK",
"state_descr": "No Signal",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "dvbSTLocalMode",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTLocalMode",
"state_descr": "Local",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "dvbSTLocalMode",
"state_descr": "Remote",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "dvbSTRFPresent",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTRFPresent",
"state_descr": "Present",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "dvbSTRFPresent",
"state_descr": "Not Present",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "dvbSTTransmitterOpMode",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTTransmitterOpMode",
"state_descr": "ON",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "dvbSTTransmitterOpMode",
"state_descr": "OFF",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "dvbSTWarning",
"state_descr": "Undefined",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 3
},
{
"state_name": "dvbSTWarning",
"state_descr": "Warning",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 1
},
{
"state_name": "dvbSTWarning",
"state_descr": "OK",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
}
]
},
"poller": "matches discovery"
}
}