librenms/tests/data/hwg-ste2.json
Lucas Gasenzer be1eefc096
Updated regex for HWG STE2 r2 to better detect hardware and software version (#15573)
* fix regex for hardware and version
* updated test data
* Update hwg-ste2.snmprec
* Create hwg-ste2.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-12-03 21:05:51 +01:00

97 lines
3.5 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": null,
"sysObjectID": ".1.3.6.1.4.1.21796.4.9",
"sysDescr": "STE2 r2, fw:1.5.5_2394",
"sysContact": "<private>",
"version": "1.5.5_2394",
"hardware": "STE2 r2",
"features": null,
"location": "<private>",
"os": "hwg-ste2",
"type": "environment",
"serial": null,
"icon": "hwg.svg"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.9.1.1.4.1",
"sensor_index": "inpAlarmState.1",
"sensor_type": "inpAlarmState",
"sensor_descr": "Alarm: Input 1",
"group": null,
"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,
"rrd_type": "GAUGE",
"state_name": "inpAlarmState"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.9.1.1.4.2",
"sensor_index": "inpAlarmState.2",
"sensor_type": "inpAlarmState",
"sensor_descr": "Alarm: Input 2",
"group": null,
"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,
"rrd_type": "GAUGE",
"state_name": "inpAlarmState"
}
],
"state_indexes": [
{
"state_name": "inpAlarmState",
"state_descr": "normal",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "inpAlarmState",
"state_descr": "alarm",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 2
}
]
},
"poller": "matches discovery"
}
}