mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
3f6958706d
* Move sentry3 current and voltage sensors to YAML, add power to YAML, fix voltage for three-phase * Sentry3: add systemTotalPower and systemPowerFactor * sentry3: note that voltage and power factor are configured, not measured * sentry3: group names to indicate sensors which are configured, rather than measured; prefix current index with infeedID to match previous PHP discovery * sentry3: add ouprefix to outlet current to match previous PHP discovery index * sentry3: restrict to recording voltage to only the first feed of each tower, to match previous indices * sentry3: add snmprec from 3-phase CS-24V4-P32MA * sentry3: attempt to fall back to Infeed * sentry3: laravel blade fallback fix * update tests instead of trying to fall back to old-style descriptions * sentry3: update expected voltage in test, too * typo * fix test * fix outlet OIDs ; update snmp test data with missing names ; regenerate test output * add missing num_oids for power * num_oid requires index, even for system-wide values
281 lines
11 KiB
JSON
281 lines
11 KiB
JSON
{
|
|
"os": {
|
|
"discovery": {
|
|
"devices": [
|
|
{
|
|
"sysName": "sentry3_123456",
|
|
"sysObjectID": ".1.3.6.1.4.1.1718.3",
|
|
"sysDescr": "Sentry Smart CDU",
|
|
"sysContact": "No Contact",
|
|
"version": "7.1f",
|
|
"hardware": "CS-24V4-P32MA",
|
|
"features": null,
|
|
"location": "No Location",
|
|
"os": "sentry3",
|
|
"type": "power",
|
|
"serial": "KAXV1234567",
|
|
"icon": "servertech.png"
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
},
|
|
"sensors": {
|
|
"discovery": {
|
|
"sensors": [
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.7.1.1",
|
|
"sensor_index": "infeedID.1.1",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedA",
|
|
"group": null,
|
|
"sensor_divisor": 100,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 1.11,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.7.1.2",
|
|
"sensor_index": "infeedID.1.2",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedB",
|
|
"group": null,
|
|
"sensor_divisor": 100,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 0.4,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.7.1.3",
|
|
"sensor_index": "infeedID.1.3",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedC",
|
|
"group": null,
|
|
"sensor_divisor": 100,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 0.59,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.7.1.4",
|
|
"sensor_index": "infeedID.1.4",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_Neutral",
|
|
"group": null,
|
|
"sensor_divisor": 100,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 2.12,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "power",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.1.6.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "System Total Power",
|
|
"group": null,
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 279,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "power",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.12.1.1",
|
|
"sensor_index": "1.1",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedA",
|
|
"group": null,
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 147,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "power",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.12.1.2",
|
|
"sensor_index": "1.2",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedB",
|
|
"group": null,
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 53,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "power",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.12.1.3",
|
|
"sensor_index": "1.3",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedC",
|
|
"group": null,
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 78,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "power_factor",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.1.10.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "System Power Factor",
|
|
"group": "Configured Power Factor",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 100,
|
|
"sensor_limit": 1,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": -1,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.1718.3.2.2.1.11.1.3",
|
|
"sensor_index": "1",
|
|
"sensor_type": "sentry3",
|
|
"sensor_descr": "TowerA_InfeedC",
|
|
"group": "Configured Voltage",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 230,
|
|
"sensor_limit": 264.5,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 195.5,
|
|
"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": null
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
}
|
|
}
|