librenms/tests/data/hiveos-wireless.json
Tony Murray 4d9924242f
Database schema cleanup (#9064)
* target db_schema

* Database schema cleanup
Remove several inconsistencies (mostly with data types and lengths)
Make things a bit nicer to implement with Laravel database migrations.
poller* tables had f'd up indexes

* Update tests, extra noise because db returns numeric types now.

* Update test data again.

* fix 253 migration for mysql 5.3
2018-09-05 07:34:50 -05:00

442 lines
18 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.26928.1",
"sysDescr": "AP230, HiveOS 8.1r2a build-178408",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "hiveos-wireless",
"type": "wireless",
"serial": null,
"icon": "aerohive.svg"
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.26928.1",
"sysDescr": "AP230, HiveOS 8.1r2a build-178408",
"sysContact": "<private>",
"version": "8.1r2a build-178408",
"hardware": "AP250",
"features": null,
"location": "<private>",
"os": "hiveos-wireless",
"type": "wireless",
"serial": "02501608254257",
"icon": "aerohive.svg"
}
]
}
},
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "clients",
"sensor_index": "1",
"sensor_type": "HiveosWireless",
"sensor_descr": "Clients",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 0,
"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.26928.1.2.9.0\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "7",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Tx Power: wifi0",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 5,
"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.26928.1.1.1.2.1.5.1.2.7\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "8",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Tx Power: wifi1",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 19,
"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.26928.1.1.1.2.1.5.1.2.8\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "noise-floor",
"sensor_index": "7",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Noise floor wifi0",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 161,
"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.26928.1.1.1.2.1.5.1.3.7\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "noise-floor",
"sensor_index": "8",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Noise floor wifi1",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 161,
"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.26928.1.1.1.2.1.5.1.3.8\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "7",
"sensor_type": "hiveos-wireless",
"sensor_descr": "wifi0",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 2437,
"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.26928.1.1.1.2.1.5.1.1.7\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "8",
"sensor_type": "hiveos-wireless",
"sensor_descr": "wifi1",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 5825,
"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.26928.1.1.1.2.1.5.1.1.8\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "clients",
"sensor_index": "1",
"sensor_type": "HiveosWireless",
"sensor_descr": "Clients",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 0,
"sensor_prev": 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_oids": "[\".1.3.6.1.4.1.26928.1.2.9.0\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "7",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Tx Power: wifi0",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 5,
"sensor_prev": 5,
"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.26928.1.1.1.2.1.5.1.2.7\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "8",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Tx Power: wifi1",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 19,
"sensor_prev": 19,
"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.26928.1.1.1.2.1.5.1.2.8\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "noise-floor",
"sensor_index": "7",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Noise floor wifi0",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 161,
"sensor_prev": 161,
"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.26928.1.1.1.2.1.5.1.3.7\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "noise-floor",
"sensor_index": "8",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Noise floor wifi1",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 161,
"sensor_prev": 161,
"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.26928.1.1.1.2.1.5.1.3.8\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "7",
"sensor_type": "hiveos-wireless",
"sensor_descr": "wifi0",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 2437,
"sensor_prev": 2437,
"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.26928.1.1.1.2.1.5.1.1.7\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "8",
"sensor_type": "hiveos-wireless",
"sensor_descr": "wifi1",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 5825,
"sensor_prev": 5825,
"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.26928.1.1.1.2.1.5.1.1.8\"]"
}
]
}
},
"ports": {
"discovery": {
"ports": []
},
"poller": "matches discovery"
},
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": "0",
"hrDeviceIndex": "0",
"processor_oid": ".1.3.6.1.4.1.26928.1.2.3.0",
"processor_index": "0",
"processor_type": "hiveos-wireless",
"processor_usage": "1",
"processor_descr": "Processor",
"processor_precision": "1",
"processor_perc_warn": "75"
}
]
},
"poller": "matches discovery"
},
"mempools": {
"discovery": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"hrDeviceIndex": null,
"mempool_type": "hiveos-wireless",
"mempool_precision": "1",
"mempool_descr": "Memory",
"mempool_perc": "0",
"mempool_used": "0",
"mempool_free": "0",
"mempool_total": "0",
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": "0",
"mempool_perc_warn": "75"
}
]
},
"poller": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"hrDeviceIndex": null,
"mempool_type": "hiveos-wireless",
"mempool_precision": "1",
"mempool_descr": "Memory",
"mempool_perc": "27",
"mempool_used": "27",
"mempool_free": "73",
"mempool_total": "100",
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": "0",
"mempool_perc_warn": "75"
}
]
}
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.26928.1.2.10.0",
"sensor_index": "0",
"sensor_type": "hiveos-wireless",
"sensor_descr": "Internal Temperature",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 45,
"sensor_limit": 65,
"sensor_limit_warn": null,
"sensor_limit_low": 35,
"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": []
},
"poller": "matches discovery"
}
}