Files
librenms-librenms/tests/data/timos.json
vivia11 96fa9c6ec6 Rewrite state sensors to walk entire table for TIMOS (#8588)
* Rewrite state sensors to walk entire table

* Adding test data
2018-04-24 21:36:14 -05:00

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"
}
}