newdevice: Added more support for Avocent devices (#7444)

* newdevice: Added more support for Avocent devices
This commit is contained in:
Neil Lathwood
2017-10-12 18:54:55 +01:00
committed by Søren Rosiak
parent 26c9a45ca6
commit f61dfa3bcd
4 changed files with 3352 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ os: avocent
text: Avocent
type: network
icon: avocent
rfc1628_compat: 1
discovery:
- sysDescr_regex:
- '/^Avocent/'

View File

@@ -0,0 +1,210 @@
mib: PM-MIB
modules:
sensors:
voltage:
options:
skip_values: 0
data:
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.70.
value: pmPowerMgmtPDUTableVoltageValue
descr: PDU
index: 'pmPowerMgmtPDUTableVoltageValue.{{ $index }}'
-
oid: pmPowerMgmtOutletsTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.5.1.70.
value: pmPowerMgmtOutletsTableVoltageValue
descr: 'Outlet {{ $pmPowerMgmtOutletsTableName }}'
index: 'pmPowerMgmtOutletsTableName.{{ $index }}'
-
oid: pmPowerMgmtPhasesTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.9.1.70.
value: pmPowerMgmtPhasesTableVoltageValue
descr: 'Phase {{ $pmPowerMgmtPhasesTableName }}'
index: 'pmPowerMgmtPhasesTableVoltageValue.{{ $index }}'
-
oid: pmPowerMgmtBanksTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.11.1.70.
value: pmPowerMgmtBanksTableVoltageValue
descr: 'Bank {{ $pmPowerMgmtBanksTableName }}'
index: 'pmPowerMgmtBanksTableVoltageValue.{{ $index }}'
power:
options:
divisor: 10
skip_values: 0
data:
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.60.
value: pmPowerMgmtPDUTablePowerValue
descr: PDU
index: 'pmPowerMgmtPDUTablePowerValue.{{ $index }}'
-
oid: pmPowerMgmtOutletsTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.5.1.60.
value: pmPowerMgmtOutletsTablePowerValue
descr: 'Outlet {{ $pmPowerMgmtOutletsTableName }}'
index: 'pmPowerMgmtOutletsTablePowerValue.{{ $index }}'
-
oid: pmPowerMgmtPhasesTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.9.1.60.
value: pmPowerMgmtPhasesTablePowerValue
descr: 'Phase {{ $pmPowerMgmtPhasesTableName }}'
index: 'pmPowerMgmtPhasesTablePowerValue.{{ $index }}'
-
oid: pmPowerMgmtBanksTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.11.1.60.
value: pmPowerMgmtBanksTablePowerValue
descr: 'Bank {{ $pmPowerMgmtBanksTableName }}'
index: ' pmPowerMgmtBanksTablePowerValue.{{ $index }}'
current:
options:
divisor: 10
skip_values: 0
data:
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.10.1
value: pmPowerMgmtPDUTableCurrent1Value
descr: Current #1
index: 'pmPowerMgmtPDUTableCurrent1Value.{{ $index }}'
low_limit: pmPowerMgmtPDUTableCurrentLowCritical
low_warn_limit: pmPowerMgmtPDUTableCurrentLowWarning
warn_limit: pmPowerMgmtPDUTableCurrentHighWarning
high_limit: pmPowerMgmtPDUTableCurrentHighCritical
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.12.1
value: pmPowerMgmtPDUTableCurrent2Value
descr: Current #2
index: 'pmPowerMgmtPDUTableCurrent2Value.{{ $index }}'
low_limit: pmPowerMgmtPDUTableCurrentLowCritical
low_warn_limit: pmPowerMgmtPDUTableCurrentLowWarning
warn_limit: pmPowerMgmtPDUTableCurrentHighWarning
high_limit: pmPowerMgmtPDUTableCurrentHighCritical
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.14.1
value: pmPowerMgmtPDUTableCurrent3Value
descr: Current #3
index: 'pmPowerMgmtPDUTableCurrent3Value.{{ $index }}'
low_limit: pmPowerMgmtPDUTableCurrentLowCritical
low_warn_limit: pmPowerMgmtPDUTableCurrentLowWarning
warn_limit: pmPowerMgmtPDUTableCurrentHighWarning
high_limit: pmPowerMgmtPDUTableCurrentHighCritical
-
oid: pmPowerMgmtOutletsTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.5.1.50.
value: pmPowerMgmtOutletsTableCurrentValue
descr: 'Outlet {{ $pmPowerMgmtOutletsTableName }}'
index: 'pmPowerMgmtOutletsTableCurrentValue.{{ $index }}'
low_limit: pmPowerMgmtOutletsTableCurrentLowCritical
low_warn_limit: pmPowerMgmtOutletsTableCurrentLowWarning
warn_limit: pmPowerMgmtOutletsTableCurrentHighWarning
high_limit: pmPowerMgmtOutletsTableCurrentHighCritical
-
oid: pmPowerMgmtPhasesTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.9.1.50.
value: pmPowerMgmtPhasesTableCurrentValue
descr: 'Phase {{ $pmPowerMgmtPhasesTableName }}'
index: 'pmPowerMgmtPhasesTableCurrentValue.{{ $index }}'
low_limit: pmPowerMgmtPhasesTableCurrentLowCritical
low_warn_limit: pmPowerMgmtPhasesTableCurrentLowWarning
warn_limit: pmPowerMgmtPhasesTableCurrentHighWarning
high_limit: pmPowerMgmtPhasesTableCurrentHighCritical
-
oid: pmPowerMgmtBanksTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.11.1.50.
value: pmPowerMgmtBanksTableCurrentValue
descr: 'Bank {{ $pmPowerMgmtBanksTableName }}'
index: ' pmPowerMgmtBanksTableCurrentValue.{{ $index }}'
low_limit: pmPowerMgmtBanksTableCurrentLowCritical
low_warn_limit: pmPowerMgmtBanksTableCurrentLowWarning
warn_limit: pmPowerMgmtBanksTableCurrentHighWarning
high_limit: pmPowerMgmtBanksTableCurrentHighCritical
temperature:
options:
divisor: 10
skip_values: 0
data:
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.17.
value: pmPowerMgmtPDUTableTemperature1Value
descr: Temp #1
index: 'pmPowerMgmtPDUTableTemperature1Value.{{ $index }}'
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.19.
value: pmPowerMgmtPDUTableTemperature2Value
descr: Temp #2
index: 'pmPowerMgmtPDUTableTemperature2Value.{{ $index }}'
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.19.
value: pmPowerMgmtPDUTableTemperature3Value
descr: Temp #3
index: 'pmPowerMgmtPDUTableTemperature3Value.{{ $index }}'
state:
data:
-
oid: pmPowerMgmtPDUTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.3.1.45.
value: pmPowerMgmtPDUTableAlarm
descr: PDU
index: 'pmPowerMgmtPDUTableAlarm.{{ $index }}'
state_name: pmPowerMgmtPDUTableAlarm
states:
- { value: 1, generic: 0, graph: 1, descr: normal }
- { value: 2, generic: 2, graph: 1, descr: blow-fuse }
- { value: 3, generic: 1, graph: 1, descr: hw-ocp }
- { value: 4, generic: 2, graph: 1, descr: high-critical }
- { value: 5, generic: 1, graph: 1, descr: high-warning }
- { value: 6, generic: 1, graph: 1, descr: low-warning }
- { value: 7, generic: 2, graph: 1, descr: low-critical }
-
oid: pmPowerMgmtOutletsTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.5.1.45.
value: pmPowerMgmtOutletsTableAlarm
descr: 'Outlet {{ $pmPowerMgmtOutletsTableName }}'
index: 'pmPowerMgmtOutletsTableAlarm.{{ $index }}'
state_name: pmPowerMgmtOutletsTableAlarm
states:
- { value: 1, generic: 0, graph: 1, descr: normal }
- { value: 2, generic: 2, graph: 1, descr: blow-fuse }
- { value: 3, generic: 1, graph: 1, descr: hw-ocp }
- { value: 4, generic: 2, graph: 1, descr: high-critical }
- { value: 5, generic: 1, graph: 1, descr: high-warning }
- { value: 6, generic: 1, graph: 1, descr: low-warning }
- { value: 7, generic: 2, graph: 1, descr: low-critical }
-
oid: pmPowerMgmtPhasesTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.9.1.45.
value: pmPowerMgmtPhasesTableAlarm
descr: 'Phase {{ $pmPowerMgmtPhasesTableName }}'
index: 'pmPowerMgmtPhasesTableAlarm.{{ $index }}'
state_name: pmPowerMgmtPhasesTableAlarm
states:
- { value: 1, generic: 0, graph: 1, descr: normal }
- { value: 2, generic: 2, graph: 1, descr: blow-fuse }
- { value: 3, generic: 1, graph: 1, descr: hw-ocp }
- { value: 4, generic: 2, graph: 1, descr: high-critical }
- { value: 5, generic: 1, graph: 1, descr: high-warning }
- { value: 6, generic: 1, graph: 1, descr: low-warning }
- { value: 7, generic: 2, graph: 1, descr: low-critical }
-
oid: pmPowerMgmtBanksTable
num_oid: .1.3.6.1.4.1.10418.17.2.5.11.1.45.
value: pmPowerMgmtBanksTableAlarm
descr: 'Bank {{ $pmPowerMgmtBanksTableName }}'
index: 'pmPowerMgmtBanksTableAlarm.{{ $index }}'
state_name: pmPowerMgmtBanksTableAlarm
states:
- { value: 1, generic: 0, graph: 1, descr: normal }
- { value: 2, generic: 2, graph: 1, descr: blow-fuse }
- { value: 3, generic: 1, graph: 1, descr: hw-ocp }
- { value: 4, generic: 2, graph: 1, descr: high-critical }
- { value: 5, generic: 1, graph: 1, descr: high-warning }
- { value: 6, generic: 1, graph: 1, descr: low-warning }
- { value: 7, generic: 2, graph: 1, descr: low-critical }

View File

@@ -1,8 +1,9 @@
<?php
if (strstr($poll_device['sysDescr'], 'AlterPath')) {
list($hardware, $version) = explode('-', trim(str_replace('version:', '', (str_replace('V_', '', $poll_device['sysDescr'])))), 2);
$hardware = trim($hardware);
$version = trim($version);
$features = trim(str_replace('#1', '', $version));
}
$avocent_tmp = snmp_get_multi_oid($device, 'pmProductModel.0 pmSerialNumber.0 pmFirmwareVersion.0', '-OUQs', 'PM-MIB');
$hardware = $avocent_tmp['pmProductModel.0'];
$serial = $avocent_tmp['pmSerialNumber.0'];
$version = $avocent_tmp['pmFirmwareVersion.0'];
unset($avocent_tmp);

3134
mibs/avocent/PM-MIB Normal file

File diff suppressed because it is too large Load Diff