Files
librenms-librenms/tests/data/airos.json
Neil Lathwood 1c94cddd70 fix: Apply divisor / multiplier to high/low limits in sensors (#8427)
* fix: Apply divisor / multiplier to high/low limits in sensors

* Updated test data for airos

* updated sensors test data

* Updated test data

* Updated test files

* updated dell-rpdu tests

* Updated to do division / multiply after check for value
2018-04-13 21:43:40 -05:00

740 lines
31 KiB
JSON

{
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "clients",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Clients",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "22",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.15.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "quality",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "airMAX Quality",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "53",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.6.1.3.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "capacity",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "airMAX Capacity",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "50",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.6.1.4.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "airos-tx",
"sensor_descr": "Tx Rate",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "59999000",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.9.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "airos-rx",
"sensor_descr": "Rx Rate",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "37338600",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.10.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "ccq",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "CCQ",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "92",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.7.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "airos",
"sensor_descr": "Overall RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "27",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.6.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "1.1",
"sensor_type": "airos",
"sensor_descr": "RSSI: Chain 1",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "48",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.2.1.2.1.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "1.2",
"sensor_type": "airos",
"sensor_descr": "RSSI: Chain 2",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "50",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.2.1.2.1.2\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "airos-tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "27",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.1.1.6.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "airos-rx",
"sensor_descr": "Signal Level",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-69",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.5.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "noise-floor",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Noise Floor",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-103",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.8.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Radio Frequency",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "5745",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.1.1.4.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "14.4",
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.1.1.7.1\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "clients",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Clients",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "22",
"sensor_prev": "22",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.15.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "quality",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "airMAX Quality",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "53",
"sensor_prev": "53",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.6.1.3.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "capacity",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "airMAX Capacity",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "50",
"sensor_prev": "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_oids": "[\".1.3.6.1.4.1.41112.1.4.6.1.4.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "airos-tx",
"sensor_descr": "Tx Rate",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "59999000",
"sensor_prev": "59999000",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.9.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "airos-rx",
"sensor_descr": "Rx Rate",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "37338600",
"sensor_prev": "37338600",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.10.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "ccq",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "CCQ",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "92",
"sensor_prev": "92",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.7.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "airos",
"sensor_descr": "Overall RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "27",
"sensor_prev": "27",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.6.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "1.1",
"sensor_type": "airos",
"sensor_descr": "RSSI: Chain 1",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "48",
"sensor_prev": "48",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.2.1.2.1.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "1.2",
"sensor_type": "airos",
"sensor_descr": "RSSI: Chain 2",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "50",
"sensor_prev": "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_oids": "[\".1.3.6.1.4.1.41112.1.4.2.1.2.1.2\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "airos-tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "27",
"sensor_prev": "27",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.1.1.6.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "airos-rx",
"sensor_descr": "Signal Level",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-69",
"sensor_prev": "-69",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.5.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "noise-floor",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Noise Floor",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-103",
"sensor_prev": "-103",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.5.1.8.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Radio Frequency",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "5745",
"sensor_prev": "5745",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.1.1.4.1\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "1",
"sensor_type": "airos",
"sensor_descr": "Distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "14.4",
"sensor_prev": "14.4",
"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_oids": "[\".1.3.6.1.4.1.41112.1.4.1.1.7.1\"]"
}
]
}
},
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": "0",
"hrDeviceIndex": "0",
"processor_oid": ".1.3.6.1.4.1.41112.1.4.8.3.0",
"processor_index": "0",
"processor_type": "airos",
"processor_usage": "4",
"processor_descr": "Processor",
"processor_precision": "100",
"processor_perc_warn": "75"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41112.1.4.9.2.0",
"sensor_index": "0",
"sensor_type": "ubntGpsFix",
"sensor_descr": "GPS Fix",
"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": "ubntGpsFix"
},
{
"sensor_deleted": "0",
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41112.1.4.8.4.0",
"sensor_index": "0",
"sensor_type": "airos",
"sensor_descr": "Temperature",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "66",
"sensor_limit": "86",
"sensor_limit_warn": null,
"sensor_limit_low": "56",
"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
}
],
"state_indexes": [
{
"state_name": "ubntGpsFix",
"state_descr": "unknown",
"state_draw_graph": "1",
"state_value": "0",
"state_generic_value": "3"
},
{
"state_name": "ubntGpsFix",
"state_descr": "nofix",
"state_draw_graph": "1",
"state_value": "1",
"state_generic_value": "2"
},
{
"state_name": "ubntGpsFix",
"state_descr": "fix2d",
"state_draw_graph": "1",
"state_value": "2",
"state_generic_value": "0"
},
{
"state_name": "ubntGpsFix",
"state_descr": "fix3d",
"state_draw_graph": "1",
"state_value": "3",
"state_generic_value": "0"
}
]
},
"poller": "matches discovery"
},
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.10002.1",
"sysDescr": "Linux 2.6.32.68 #1 Fri Dec 16 15:44:21 EET 2016 mips",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "airos",
"type": "wireless",
"serial": null,
"icon": "ubiquiti.svg"
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.10002.1",
"sysDescr": "Linux 2.6.32.68 #1 Fri Dec 16 15:44:21 EET 2016 mips",
"sysContact": "<private>",
"version": null,
"hardware": "Ubiquiti Linux 2.6.32.68 #1 Fri Dec 16 15:44:21 EET 2016 mips",
"features": null,
"location": "<private>",
"os": "airos",
"type": "wireless",
"serial": null,
"icon": "ubiquiti.svg"
}
]
}
}
}