librenms/tests/data/rs.json
Jellyfrog e876299f09
Move sysContact polling to discovery (#12524)
* Move sysContact polling to discovery

* Update tests

* fixup

* fixup

* fixup

* fixup

* fixup
2021-02-11 19:04:45 -06:00

465 lines
18 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,
"os": "rs",
"type": "network",
"serial": "000000",
"icon": "rs.svg",
"location": null
}
]
},
"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,
"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,
"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,
"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,
"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,
"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,
"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,
"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,
"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,
"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,
"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,
"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"
}
}