librenms/tests/data/fiberhome-switch_fh4800.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

87 lines
3.5 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.3807.1.481005",
"sysDescr": "S4800 FiberHome INP (R) Software, Version V210R220,Hw Version N/A,Copyright (c) 2000-2017 by FiberHome Technologies Co., Ltd",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "fiberhome-switch",
"type": "network",
"serial": null,
"icon": "fiberhome.svg"
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.3807.1.481005",
"sysDescr": "S4800 FiberHome INP (R) Software, Version V210R220,Hw Version N/A,Copyright (c) 2000-2017 by FiberHome Technologies Co., Ltd",
"sysContact": "<private>",
"version": "V210R220\u0000\u0000\u0000\u0000\u0000\u0000\u0000\n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
"hardware": "FHN S4800 V N/A\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \n00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
"features": null,
"location": "<private>",
"os": "fiberhome-switch",
"type": "network",
"serial": null,
"icon": "fiberhome.svg"
}
]
}
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.3807.1.8012.1.4.1.1.7.1",
"sensor_index": "1",
"sensor_type": "cpuStatus",
"sensor_descr": "CPU Status",
"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": "cpuStatus"
}
],
"state_indexes": [
{
"state_name": "cpuStatus",
"state_descr": "Normal",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "cpuStatus",
"state_descr": "Overflow",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 2
}
]
},
"poller": "matches discovery"
}
}