mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Default to null for group yaml discovery. * Update test data fora154bdayaml group null fix. * Changes to guessed limit functions for sensors. Original behaviour =================== The file `includes/discovery/functions.inc.php` contains `sensor_limit_low()` and `sensor_limit()` which both attempt to guess a sane value for sensors when no explicitly defined low_limit or high_limit can be found during discovery. Both switch control structures used in those two functions have empty case statements which means that if one of those matches, it's going to fall through and run the code for each subsequent case until a `break` is reached. For example, when we call `function sensor_low_limit(dbm, -13.036)` it will return the value `-12.3842` instead of `null`. That is because there will be a match at `case 'dbm':` which falls through all the way to `case 'cooling':`, where it performs `$limit = -13.036 * 0.95` before hitting a `break`. Changed behaviour =================== Removed `power_consumed` and `count` guessed low_limit and high_limit, I personally added those sensor classes in PR #9471 when I didn't understand that a switch control structure has fall-through behaviour so I can guarantee that guessing limits for those is a mistake on my behalf. It should not be there, only power_factor can have guessed limits. Apologies for the issue, I'm still a beginning programmer! Furthermore, I removed guessed high_limit values for `current` and `power` because these are supposed to draw higher values as more devices or components are installed on for example a PDU or a chassis. Finally, I removed guessed low_limit and high_limit for `dbm` sensors, there is a much too large variance in power budget on commercially available optical transceivers for there to be a sensible window where you can guess these values. * Documentation on adding sensor classes. * Update test data - sensor limit changes @30212d2
777 lines
32 KiB
JSON
777 lines
32 KiB
JSON
{
|
|
"os": {
|
|
"discovery": {
|
|
"devices": [
|
|
{
|
|
"sysName": "<private>",
|
|
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
|
|
"sysDescr": "Linux GSE200M 2.6.27-SPEAr310 #5 Fri Mar 9 23:07:56 CST 2012 armv5tejl",
|
|
"sysContact": null,
|
|
"version": null,
|
|
"hardware": null,
|
|
"features": null,
|
|
"os": "huawei-smu",
|
|
"type": "power",
|
|
"serial": null,
|
|
"icon": "huawei.svg",
|
|
"location": null
|
|
}
|
|
]
|
|
},
|
|
"poller": {
|
|
"devices": [
|
|
{
|
|
"sysName": "<private>",
|
|
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
|
|
"sysDescr": "Linux GSE200M 2.6.27-SPEAr310 #5 Fri Mar 9 23:07:56 CST 2012 armv5tejl",
|
|
"sysContact": "<private>",
|
|
"version": "V100R002C01B104SP04",
|
|
"hardware": null,
|
|
"features": null,
|
|
"os": "huawei-smu",
|
|
"type": "power",
|
|
"serial": null,
|
|
"icon": "huawei.svg",
|
|
"location": "<private>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sensors": {
|
|
"discovery": {
|
|
"sensors": [
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "charge",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.4.4.2.1.3.1",
|
|
"sensor_index": "hwBattStringRemainCapacityPercent.1",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Remaining battery capacity",
|
|
"group": null,
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 100,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "count",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.5.1.4.0",
|
|
"sensor_index": "ac-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Quantity of ACs",
|
|
"group": "AC",
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "count",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.4.1.3.0",
|
|
"sensor_index": "battery-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Quantity of Batteries",
|
|
"group": "Battery",
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "count",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.6.1.6.0",
|
|
"sensor_index": "dc-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Quantity of DCs",
|
|
"group": "DC",
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "count",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.3.1.4.0",
|
|
"sensor_index": "rectifier-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Quantity of Rectifiers",
|
|
"group": "Rectifier",
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.4.2.1.0",
|
|
"sensor_index": "battery-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Battery Current",
|
|
"group": "Battery",
|
|
"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,
|
|
"state_name": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.6.2.1.1.5.1",
|
|
"sensor_index": "dcOutput-1",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "DC Output Current",
|
|
"group": "DC",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 7,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.6.1.4.0",
|
|
"sensor_index": "dcTotal-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "DC Total Current",
|
|
"group": "DC",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 7,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "current",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.3.1.3.0",
|
|
"sensor_index": "rectifier-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Rectifier Current",
|
|
"group": "Rectifier",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 7,
|
|
"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": null
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.4.2.3.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hwBattsChargeStatus",
|
|
"sensor_descr": "Battery Charge Status",
|
|
"group": "Battery",
|
|
"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": "hwBattsChargeStatus"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.4.2.4.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hwBattsCurrLimitStatus",
|
|
"sensor_descr": "Battery Limiting Status",
|
|
"group": "Battery",
|
|
"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": "hwBattsCurrLimitStatus"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.3.1.8.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hwCtrlRectsAllOnOff",
|
|
"sensor_descr": "Recirifier Module Status",
|
|
"group": "Rectifier",
|
|
"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": "hwCtrlRectsAllOnOff"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.2.2.1.1.99.1",
|
|
"sensor_index": "1",
|
|
"sensor_type": "hwMonitorOperStatus",
|
|
"sensor_descr": "Monitor Status",
|
|
"group": "Site Summary",
|
|
"sensor_divisor": 1,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 255,
|
|
"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": "hwMonitorOperStatus"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.2.2.1.1.11.1",
|
|
"sensor_index": "1",
|
|
"sensor_type": "hwSetMonEquipCtrlState",
|
|
"sensor_descr": "Monitor Control Status",
|
|
"group": "Site Summary",
|
|
"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": "hwSetMonEquipCtrlState"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.3.1.7.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hwSetRectsRedundEnable",
|
|
"sensor_descr": "Sleep Function",
|
|
"group": "Rectifier",
|
|
"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": "hwSetRectsRedundEnable"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.1.1.9.0",
|
|
"sensor_index": "0",
|
|
"sensor_type": "hwSiteDGWorkStatus",
|
|
"sensor_descr": "Site Status",
|
|
"group": "Site Summary",
|
|
"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": "hwSiteDGWorkStatus"
|
|
},
|
|
{
|
|
"sensor_deleted": 0,
|
|
"sensor_class": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.5.2.1.1.4.1",
|
|
"sensor_index": "acInput-1",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "AC Input (A-Phase)",
|
|
"group": "AC",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 235.8,
|
|
"sensor_limit": 271.17,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 200.43,
|
|
"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": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.3.1.6.0",
|
|
"sensor_index": "adjustedRectifier-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Rectifier Adjusted Voltage",
|
|
"group": "Rectifier",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 53.2,
|
|
"sensor_limit": 61.18,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 45.22,
|
|
"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": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.6.2.1.1.4.1",
|
|
"sensor_index": "dcOutput-1",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "DC Output Voltage",
|
|
"group": "DC",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 53.5,
|
|
"sensor_limit": 61.525,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 45.475,
|
|
"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": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.6.1.3.0",
|
|
"sensor_index": "dcTotal-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "DC Total Voltage",
|
|
"group": "DC",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 53.5,
|
|
"sensor_limit": 61.525,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 45.475,
|
|
"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": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.7.2.1.1.5.1",
|
|
"sensor_index": "lvd-1",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Lvd1",
|
|
"group": "LVD",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 44,
|
|
"sensor_limit": 50.6,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 37.4,
|
|
"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": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.7.2.1.1.5.2",
|
|
"sensor_index": "lvd-2",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Lvd2",
|
|
"group": "LVD",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 43.2,
|
|
"sensor_limit": 49.68,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 36.72,
|
|
"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": "voltage",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.2011.6.164.1.3.1.5.0",
|
|
"sensor_index": "ratedRectifier-0",
|
|
"sensor_type": "huawei-smu",
|
|
"sensor_descr": "Rectifier Rated Voltage",
|
|
"group": "Rectifier",
|
|
"sensor_divisor": 10,
|
|
"sensor_multiplier": 1,
|
|
"sensor_current": 53.5,
|
|
"sensor_limit": 61.525,
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": 45.475,
|
|
"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": "hwBattsChargeStatus",
|
|
"state_descr": "floatCharge",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwBattsChargeStatus",
|
|
"state_descr": "boostCharge",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hwBattsChargeStatus",
|
|
"state_descr": "disCharge",
|
|
"state_draw_graph": 1,
|
|
"state_value": 3,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hwBattsChargeStatus",
|
|
"state_descr": "unknown",
|
|
"state_draw_graph": 1,
|
|
"state_value": 255,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwBattsCurrLimitStatus",
|
|
"state_descr": "unlimit",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwBattsCurrLimitStatus",
|
|
"state_descr": "limit",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwBattsCurrLimitStatus",
|
|
"state_descr": "unknown",
|
|
"state_draw_graph": 1,
|
|
"state_value": 255,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwCtrlRectsAllOnOff",
|
|
"state_descr": "on",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwCtrlRectsAllOnOff",
|
|
"state_descr": "off",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hwCtrlRectsAllOnOff",
|
|
"state_descr": "nullOper",
|
|
"state_draw_graph": 1,
|
|
"state_value": 255,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwMonitorOperStatus",
|
|
"state_descr": "normal",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwMonitorOperStatus",
|
|
"state_descr": "commRs485Fail",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hwMonitorOperStatus",
|
|
"state_descr": "commNetFail",
|
|
"state_draw_graph": 1,
|
|
"state_value": 3,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hwMonitorOperStatus",
|
|
"state_descr": "fault",
|
|
"state_draw_graph": 1,
|
|
"state_value": 4,
|
|
"state_generic_value": 2
|
|
},
|
|
{
|
|
"state_name": "hwMonitorOperStatus",
|
|
"state_descr": "alarmResume",
|
|
"state_draw_graph": 1,
|
|
"state_value": 254,
|
|
"state_generic_value": 1
|
|
},
|
|
{
|
|
"state_name": "hwMonitorOperStatus",
|
|
"state_descr": "other",
|
|
"state_draw_graph": 1,
|
|
"state_value": 255,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwSetMonEquipCtrlState",
|
|
"state_descr": "manualMode",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwSetMonEquipCtrlState",
|
|
"state_descr": "autoMode",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwSetMonEquipCtrlState",
|
|
"state_descr": "unknown",
|
|
"state_draw_graph": 1,
|
|
"state_value": 255,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwSetRectsRedundEnable",
|
|
"state_descr": "disable",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwSetRectsRedundEnable",
|
|
"state_descr": "enable",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwSetRectsRedundEnable",
|
|
"state_descr": "funcNotSuppport",
|
|
"state_draw_graph": 1,
|
|
"state_value": 3,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwSiteDGWorkStatus",
|
|
"state_descr": "idle",
|
|
"state_draw_graph": 1,
|
|
"state_value": 1,
|
|
"state_generic_value": 3
|
|
},
|
|
{
|
|
"state_name": "hwSiteDGWorkStatus",
|
|
"state_descr": "working",
|
|
"state_draw_graph": 1,
|
|
"state_value": 2,
|
|
"state_generic_value": 0
|
|
},
|
|
{
|
|
"state_name": "hwSiteDGWorkStatus",
|
|
"state_descr": "unknown",
|
|
"state_draw_graph": 1,
|
|
"state_value": 3,
|
|
"state_generic_value": 3
|
|
}
|
|
]
|
|
},
|
|
"poller": "matches discovery"
|
|
}
|
|
}
|