Files
librenms-librenms/tests/data/netspire.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

132 lines
4.5 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.1732",
"sysDescr": "NetSpire CONAC01/4004:70FM r1.0",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "netspire",
"type": "appliance",
"serial": null,
"icon": "openaccess.png"
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.1732",
"sysDescr": "NetSpire CONAC01/4004:70FM r1.0",
"sysContact": "<private>",
"version": null,
"hardware": "CONAC01/4004:70FM",
"features": null,
"location": "<private>",
"os": "netspire",
"type": "appliance",
"serial": "141100002",
"icon": "openaccess.png"
}
]
}
},
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": "0",
"hrDeviceIndex": "0",
"processor_oid": ".1.3.6.1.4.1.1732.2.1.9.0",
"processor_index": "0",
"processor_type": "netspire",
"processor_usage": "34",
"processor_descr": "Processor",
"processor_precision": "1",
"processor_perc_warn": "75"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.1732.2.1.10.0",
"sensor_index": "0",
"sensor_type": "netspire",
"sensor_descr": "System Temperature",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 48,
"sensor_limit": 68,
"sensor_limit_warn": null,
"sensor_limit_low": 38,
"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"
},
"mempools": {
"discovery": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"hrDeviceIndex": null,
"mempool_type": "netspire",
"mempool_precision": "1",
"mempool_descr": "Storage",
"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": "netspire",
"mempool_precision": "1",
"mempool_descr": "Storage",
"mempool_perc": "0",
"mempool_used": "0",
"mempool_free": "100",
"mempool_total": "100",
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": "0",
"mempool_perc_warn": "75"
}
]
}
}
}