Added detection and sensors for Huawei SMU device (#10267)

* added new os huawei-smu
* Create huawei-smu.inc.php
* added snmprec test
* added json test
* Update huawei-smu.json
* Update huawei-smu.json
* updated os definition
* added sensors of SMU
* Update huawei-smu.inc.php
* Create HUAWEI-SITE-MONITOR-MIB
* Update huawei-smu.snmprec
* Update huawei-smu.yaml
* Update huawei-smu.json
* Update huawei-smu.snmprec
This commit is contained in:
jozefrebjak
2019-05-28 14:57:11 +02:00
committed by PipoCanaja
parent 0ae1f30f7d
commit 824bcb7f16
6 changed files with 6632 additions and 0 deletions

View File

@@ -0,0 +1,188 @@
mib: HUAWEI-MIB:HUAWEI-SITE-MONITOR-MIB
modules:
pre-cache:
data:
- oid:
- hwLvdUnitEquipName
sensors:
voltage:
data:
-
oid: hwRectsRatedVoltage
num_oid: '.1.3.6.1.4.1.2011.6.164.1.3.1.5.{{ $index }}'
divisor: 10
descr: Rectifier Rated Voltage
index: "ratedRectifier-{{ $index }}"
group: Rectifier
-
oid: hwModifyRectsOutputVoltage
num_oid: '.1.3.6.1.4.1.2011.6.164.1.3.1.6.{{ $index }}'
divisor: 10
descr: Rectifier Adjusted Voltage
index: "adjustedRectifier-{{ $index }}"
group: Rectifier
-
oid: hwApOrAblVoltage
num_oid: '.1.3.6.1.4.1.2011.6.164.1.5.2.1.1.4.{{ $index }}'
descr: "AC Input (A-Phase)"
index: "acInput-{{ $index }}"
group: AC
divisor: 10
-
oid: hwDcsTotalVoltage
num_oid: '.1.3.6.1.4.1.2011.6.164.1.6.1.3.{{ $index }}'
descr: "DC Total Voltage"
index: "dcTotal-{{ $index }}"
group: DC
divisor: 10
-
oid: hwDcOutputVoltage
num_oid: '.1.3.6.1.4.1.2011.6.164.1.6.2.1.1.4.{{ $index }}'
descr: "DC Output Voltage"
index: "dcOutput-{{ $index }}"
group: DC
divisor: 10
-
oid: hwSetLvdVoltage
num_oid: '.1.3.6.1.4.1.2011.6.164.1.7.2.1.1.5.{{ $index }}'
descr: hwLvdUnitEquipName
index: "lvd-{{ $index }}"
group: LVD
divisor: 10
current:
data:
-
oid: hwBattsTotalCurrent
num_oid: '.1.3.6.1.4.1.2011.6.164.1.4.2.1.{{ $index }}'
descr: Battery Current
index: "battery-{{ $index }}"
group: Battery
-
oid: hwRectsTotalCurrent
num_oid: '.1.3.6.1.4.1.2011.6.164.1.3.1.3.{{ $index }}'
descr: Rectifier Current
index: "rectifier-{{ $index }}"
group: Rectifier
-
oid: hwDcsTotalCurrent
num_oid: '.1.3.6.1.4.1.2011.6.164.1.6.1.4.{{ $index }}'
descr: DC Total Current
index: "dcTotal-{{ $index }}"
group: DC
-
oid: hwDcOutputCurrent
num_oid: '.1.3.6.1.4.1.2011.6.164.1.6.2.1.1.5.{{ $index }}'
descr: DC Output Current
index: "dcOutput-{{ $index }}"
group: DC
count:
data:
-
oid: hwBattsTotalQuantity
num_oid: '.1.3.6.1.4.1.2011.6.164.1.4.1.3.{{ $index }}'
descr: "Quantity of Batteries"
index: "battery-{{ $index }}"
group: Battery
-
oid: hwRectsTotalQuantity
num_oid: '.1.3.6.1.4.1.2011.6.164.1.3.1.4.{{ $index }}'
descr: "Quantity of Rectifiers"
index: "rectifier-{{ $index }}"
group: Rectifier
-
oid: hwDcsTotalQuantity
num_oid: '.1.3.6.1.4.1.2011.6.164.1.6.1.6.{{ $index }}'
descr: "Quantity of DCs"
index: "dc-{{ $index }}"
group: DC
-
oid: hwAcsTotalQuantity
num_oid: '.1.3.6.1.4.1.2011.6.164.1.5.1.4.{{ $index }}'
descr: "Quantity of ACs"
index: "ac-{{ $index }}"
group: AC
charge:
data:
-
oid: hwBattStringRemainCapacityPercent
num_oid: '.1.3.6.1.4.1.2011.6.164.1.4.4.2.1.3.{{ $index }}'
descr: 'Remaining battery capacity'
index: 'hwBattStringRemainCapacityPercent.{{ $index }}'
divisor: 10
state:
data:
-
oid: hwSiteDGWorkStatus
num_oid: '.1.3.6.1.4.1.2011.6.164.1.1.1.9.{{ $index }}'
group: Site Summary
descr: "Site Status"
state_name: hwSiteDGWorkStatus
states:
- { value: 1, generic: 3, graph: 1, descr: 'idle' }
- { value: 2, generic: 0, graph: 1, descr: 'working' }
- { value: 3, generic: 3, graph: 1, descr: 'unknown' }
-
oid: hwMonitorOperStatus
num_oid: '.1.3.6.1.4.1.2011.6.164.1.2.2.1.1.99.{{ $index }}'
descr: "Monitor Status"
group: Site Summary
state_name: hwMonitorOperStatus
states:
- { value: 1, generic: 0, graph: 1, descr: 'normal' }
- { value: 2, generic: 2, graph: 1, descr: 'commRs485Fail' }
- { value: 3, generic: 2, graph: 1, descr: 'commNetFail' }
- { value: 4, generic: 2, graph: 1, descr: 'fault' }
- { value: 254, generic: 1, graph: 1, descr: 'alarmResume' }
- { value: 255, generic: 3, graph: 1, descr: 'other' }
-
oid: hwSetMonEquipCtrlState
num_oid: '.1.3.6.1.4.1.2011.6.164.1.2.2.1.1.11.{{ $index }}'
descr: "Monitor Control Status"
group: Site Summary
state_name: hwSetMonEquipCtrlState
states:
- { value: 1, generic: 0, graph: 1, descr: 'manualMode' }
- { value: 2, generic: 0, graph: 1, descr: 'autoMode' }
- { value: 255, generic: 3, graph: 1, descr: 'unknown' }
-
oid: hwSetRectsRedundEnable
num_oid: '.1.3.6.1.4.1.2011.6.164.1.3.1.7.{{ $index }}'
descr: "Sleep Function"
group: Rectifier
state_name: hwSetRectsRedundEnable
states:
- { value: 1, generic: 0, graph: 1, descr: 'disable' }
- { value: 2, generic: 0, graph: 1, descr: 'enable' }
- { value: 3, generic: 3, graph: 1, descr: 'funcNotSuppport' }
-
oid: hwCtrlRectsAllOnOff
num_oid: '.1.3.6.1.4.1.2011.6.164.1.3.1.8.{{ $index }}'
descr: "Recirifier Module Status"
group: Rectifier
state_name: hwCtrlRectsAllOnOff
states:
- { value: 1, generic: 0, graph: 1, descr: 'on' }
- { value: 2, generic: 1, graph: 1, descr: 'off' }
- { value: 255, generic: 3, graph: 1, descr: 'nullOper' }
-
oid: hwBattsChargeStatus
num_oid: '.1.3.6.1.4.1.2011.6.164.1.4.2.3.{{ $index }}'
descr: "Battery Charge Status"
group: Battery
state_name: hwBattsChargeStatus
states:
- { value: 1, generic: 0, graph: 1, descr: 'floatCharge' }
- { value: 2, generic: 1, graph: 1, descr: 'boostCharge' }
- { value: 3, generic: 2, graph: 1, descr: 'disCharge' }
- { value: 255, generic: 3, graph: 1, descr: 'unknown' }
-
oid: hwBattsCurrLimitStatus
num_oid: '.1.3.6.1.4.1.2011.6.164.1.4.2.4.{{ $index }}'
descr: "Battery Limiting Status"
group: Battery
state_name: hwBattsCurrLimitStatus
states:
- { value: 1, generic: 0, graph: 1, descr: 'unlimit' }
- { value: 2, generic: 0, graph: 1, descr: 'limit' }
- { value: 255, generic: 3, graph: 1, descr: 'unknown' }

View File

@@ -0,0 +1,17 @@
os: huawei-smu
text: Huawei SMU
type: power
icon: huawei
mib_dir:
- huawei
over:
- { graph: device_current, text: Current }
- { graph: device_voltage, text: Voltage }
- { graph: device_charge, text: Charge }
discovery:
-
sysObjectID: .1.3.6.1.4.1.8072.3.2.10
snmpget:
oid: .1.3.6.1.4.1.2011.6.164.1.1.1.4.0
op: starts
value: HUAWEI SMU

View File

@@ -0,0 +1,4 @@
<?php
//Collect Software Version
$huaweismu_tmp = snmp_get_multi_oid($device, 'hwMonEquipSoftwareVersion.1', '-OQUs', 'HUAWEI-SITE-MONITOR-MIB');
$version = $huaweismu_tmp['hwMonEquipSoftwareVersion.1'];

File diff suppressed because it is too large Load Diff

776
tests/data/huawei-smu.json Normal file
View File

@@ -0,0 +1,776 @@
{
"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": "",
"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": 1.5,
"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": 3,
"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": 1.5,
"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": 3,
"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": 0,
"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": 10.5,
"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": 10.5,
"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": 10.5,
"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"
}
}

View File

@@ -0,0 +1,65 @@
1.3.6.1.2.1.1.1.0|4|Linux GSE200M 2.6.27-SPEAr310 #5 Fri Mar 9 23:07:56 CST 2012 armv5tejl
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10
1.3.6.1.2.1.1.3.0|67|147776586
1.3.6.1.2.1.1.4.0|4|<private>
1.3.6.1.2.1.1.5.0|4|<private>
1.3.6.1.2.1.1.6.0|4|<private>
1.3.6.1.2.1.11.1.0|65|66958
1.3.6.1.2.1.11.2.0|65|66938
1.3.6.1.2.1.11.3.0|65|0
1.3.6.1.2.1.11.4.0|65|10
1.3.6.1.2.1.11.5.0|65|0
1.3.6.1.2.1.11.6.0|65|0
1.3.6.1.2.1.11.8.0|65|0
1.3.6.1.2.1.11.9.0|65|0
1.3.6.1.2.1.11.10.0|65|0
1.3.6.1.2.1.11.11.0|65|0
1.3.6.1.2.1.11.12.0|65|0
1.3.6.1.2.1.11.13.0|65|299637
1.3.6.1.2.1.11.14.0|65|6
1.3.6.1.2.1.11.15.0|65|37949
1.3.6.1.2.1.11.16.0|65|10187
1.3.6.1.2.1.11.17.0|65|6
1.3.6.1.2.1.11.18.0|65|0
1.3.6.1.2.1.11.19.0|65|0
1.3.6.1.2.1.11.20.0|65|0
1.3.6.1.2.1.11.21.0|65|0
1.3.6.1.2.1.11.22.0|65|0
1.3.6.1.2.1.11.24.0|65|0
1.3.6.1.2.1.11.25.0|65|0
1.3.6.1.2.1.11.26.0|65|0
1.3.6.1.2.1.11.27.0|65|0
1.3.6.1.2.1.11.28.0|65|66928
1.3.6.1.2.1.11.29.0|65|12
1.3.6.1.2.1.11.30.0|2|2
1.3.6.1.2.1.11.31.0|65|0
1.3.6.1.2.1.11.32.0|65|0
1.3.6.1.4.1.2011.6.164.1.1.1.1.0|66|0
1.3.6.1.4.1.2011.6.164.1.1.1.4.0|4|HUAWEI SMU
1.3.6.1.4.1.2011.6.164.1.1.1.9.0|2|2
1.3.6.1.4.1.2011.6.164.1.2.2.1.1.5.1|4|V100R002C01B104SP04
1.3.6.1.4.1.2011.6.164.1.2.2.1.1.11.1|2|2
1.3.6.1.4.1.2011.6.164.1.2.2.1.1.99.1|2|255
1.3.6.1.4.1.2011.6.164.1.3.1.3.0|66|7
1.3.6.1.4.1.2011.6.164.1.3.1.4.0|66|2
1.3.6.1.4.1.2011.6.164.1.3.1.5.0|66|535
1.3.6.1.4.1.2011.6.164.1.3.1.6.0|66|532
1.3.6.1.4.1.2011.6.164.1.3.1.7.0|2|1
1.3.6.1.4.1.2011.6.164.1.3.1.8.0|2|1
1.3.6.1.4.1.2011.6.164.1.4.1.3.0|66|2
1.3.6.1.4.1.2011.6.164.1.4.2.1.0|2|0
1.3.6.1.4.1.2011.6.164.1.4.2.3.0|2|1
1.3.6.1.4.1.2011.6.164.1.4.2.4.0|2|1
1.3.6.1.4.1.2011.6.164.1.4.4.2.1.3.1|66|1000
1.3.6.1.4.1.2011.6.164.1.5.1.4.0|66|1
1.3.6.1.4.1.2011.6.164.1.5.2.1.1.4.1|66|2358
1.3.6.1.4.1.2011.6.164.1.6.1.3.0|66|535
1.3.6.1.4.1.2011.6.164.1.6.1.4.0|66|7
1.3.6.1.4.1.2011.6.164.1.6.1.6.0|66|1
1.3.6.1.4.1.2011.6.164.1.6.2.1.1.4.1|66|535
1.3.6.1.4.1.2011.6.164.1.6.2.1.1.5.1|66|7
1.3.6.1.4.1.2011.6.164.1.7.2.1.1.3.1|4|Lvd1
1.3.6.1.4.1.2011.6.164.1.7.2.1.1.3.2|4|Lvd2
1.3.6.1.4.1.2011.6.164.1.7.2.1.1.5.1|2|440
1.3.6.1.4.1.2011.6.164.1.7.2.1.1.5.2|2|432
1.3.6.1.6.3.10.2.1.3.0|2|1477062