mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
553 lines
24 KiB
JSON
553 lines
24 KiB
JSON
{
|
|
"processors": {
|
|
"discovery": {
|
|
"processors": [
|
|
{
|
|
"entPhysicalIndex": "0",
|
|
"hrDeviceIndex": "0",
|
|
"processor_oid": ".1.3.6.1.4.1.6527.3.1.2.1.1.1.0",
|
|
"processor_index": "0",
|
|
"processor_type": "timos",
|
|
"processor_usage": "42",
|
|
"processor_descr": "Processor",
|
|
"processor_precision": "1",
|
|
"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.6527.3.1.2.2.1.5.1.8.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.8.1.1",
|
|
"sensor_type": "tmnxChassisPowerSupplyAssignedTypes",
|
|
"sensor_descr": "Assigned Type PS 1",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxChassisPowerSupplyAssignedTypes"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.8.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.8.1.2",
|
|
"sensor_type": "tmnxChassisPowerSupplyAssignedTypes",
|
|
"sensor_descr": "Assigned Type PS 2",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxChassisPowerSupplyAssignedTypes"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.10.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.10.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Output Status PS 1",
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.10.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.10.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Output Status PS 2",
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.2.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.2.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "AC Status PS 1",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 3,
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.2.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.2.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "AC Status PS 2",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 3,
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.3.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.3.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "DC Status PS 1",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.3.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.3.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "DC Status PS 2",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.4.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.4.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Temperature Status PS 1",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.4.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.4.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Temperature Status PS 2",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.6.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.6.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Power Supply 1 Status PS 1",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 3,
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.6.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.6.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Power Supply 1 Status PS 2",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 3,
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.7.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.7.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Power Supply 2 Status PS 1",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.7.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.7.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Power Supply 2 Status PS 2",
|
|
"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": null,
|
|
"user_func": null,
|
|
"state_name": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.9.1.1",
|
|
"sensor_index": "tmnxPowerSupplyTable.9.1.1",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Input Status PS 1",
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.5.1.9.1.2",
|
|
"sensor_index": "tmnxPowerSupplyTable.9.1.2",
|
|
"sensor_type": "tmnxDeviceState",
|
|
"sensor_descr": "Input Status PS 2",
|
|
"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": "tmnxDeviceState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "temperature",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.8.1.18.1.134217729",
|
|
"sensor_index": "tmnxHwTemperature.1.134217729",
|
|
"sensor_type": "nokia",
|
|
"sensor_descr": "Slot 1",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 71,
|
|
"sensor_limit": 85,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 61,
|
|
"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
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "temperature",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.8.1.18.1.150994977",
|
|
"sensor_index": "tmnxHwTemperature.1.150994977",
|
|
"sensor_type": "nokia",
|
|
"sensor_descr": "Slot A",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 71,
|
|
"sensor_limit": 85,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 61,
|
|
"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
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "temperature",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.8.1.18.1.184549633",
|
|
"sensor_index": "tmnxHwTemperature.1.184549633",
|
|
"sensor_type": "nokia",
|
|
"sensor_descr": "MDA 1/1",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": -128,
|
|
"sensor_limit": 85,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": -138,
|
|
"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
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "temperature",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.6527.3.1.2.2.1.8.1.18.1.50331649",
|
|
"sensor_index": "tmnxHwTemperature.1.50331649",
|
|
"sensor_type": "nokia",
|
|
"sensor_descr": "Chassis 1",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 71,
|
|
"sensor_limit": 85,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 61,
|
|
"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": "tmnxChassisPowerSupplyAssignedTypes",
|
|
"state_descr": "None",
|
|
"state_draw_graph": 0,
|
|
"state_value": 0,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "tmnxChassisPowerSupplyAssignedTypes",
|
|
"state_descr": "DC",
|
|
"state_draw_graph": 0,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "tmnxChassisPowerSupplyAssignedTypes",
|
|
"state_descr": "Single AC",
|
|
"state_draw_graph": 0,
|
|
"state_value": 2,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "tmnxChassisPowerSupplyAssignedTypes",
|
|
"state_descr": "Multiple AC",
|
|
"state_draw_graph": 0,
|
|
"state_value": 3,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "tmnxDeviceState",
|
|
"state_descr": "Unknown",
|
|
"state_draw_graph": 0,
|
|
"state_value": 1,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "tmnxDeviceState",
|
|
"state_descr": "Not Equipped",
|
|
"state_draw_graph": 0,
|
|
"state_value": 2,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "tmnxDeviceState",
|
|
"state_descr": "OK",
|
|
"state_draw_graph": 0,
|
|
"state_value": 3,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "tmnxDeviceState",
|
|
"state_descr": "Failed",
|
|
"state_draw_graph": 0,
|
|
"state_value": 4,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "tmnxDeviceState",
|
|
"state_descr": "Out of Service",
|
|
"state_draw_graph": 0,
|
|
"state_value": 5,
|
|
"state_generic_value": 1
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
}
|
|
}
|