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

189 lines
7.0 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.17095",
"sysDescr": "Temperature & Sensor Gateway",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "serverscheck",
"type": "network",
"serial": null,
"icon": "generic.svg"
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.17095",
"sysDescr": "Temperature & Sensor Gateway",
"sysContact": "<private>",
"version": null,
"hardware": "",
"features": null,
"location": "<private>",
"os": "serverscheck",
"type": "network",
"serial": null,
"icon": "generic.svg"
}
]
}
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.10.0",
"sensor_index": "sensor3name",
"sensor_type": "Serverscheck_FloodSensor",
"sensor_descr": "Flooding",
"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": "Serverscheck_FloodSensor"
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.2.0",
"sensor_index": "sensor1name",
"sensor_type": "serverscheck",
"sensor_descr": "Temperature",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 27.53,
"sensor_limit": 47.53,
"sensor_limit_warn": null,
"sensor_limit_low": 17.53,
"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": "Serverscheck_FloodSensor",
"state_descr": "-",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 1
},
{
"state_name": "Serverscheck_FloodSensor",
"state_descr": "DRY",
"state_draw_graph": 1,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "Serverscheck_FloodSensor",
"state_descr": "WET",
"state_draw_graph": 1,
"state_value": 4,
"state_generic_value": 2
}
]
},
"poller": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.10.0",
"sensor_index": "sensor3name",
"sensor_type": "Serverscheck_FloodSensor",
"sensor_descr": "Flooding",
"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": 1,
"user_func": null,
"state_name": "Serverscheck_FloodSensor"
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.17095.3.2.0",
"sensor_index": "sensor1name",
"sensor_type": "serverscheck",
"sensor_descr": "Temperature",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 27.53,
"sensor_limit": 47.53,
"sensor_limit_warn": null,
"sensor_limit_low": 17.53,
"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": "Serverscheck_FloodSensor",
"state_descr": "-",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 1
},
{
"state_name": "Serverscheck_FloodSensor",
"state_descr": "DRY",
"state_draw_graph": 1,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "Serverscheck_FloodSensor",
"state_descr": "WET",
"state_draw_graph": 1,
"state_value": 4,
"state_generic_value": 2
}
]
}
}
}