-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added iBoot PDU (dataprobe) support (#10898)
* os-recognition iboot * tests * MIB * skip_values
- Loading branch information
1 parent
cd044ad
commit f4fbdfa
Showing
7 changed files
with
2,042 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
mib: IBOOTPDU-MIB | ||
modules: | ||
sensors: | ||
pre-cache: | ||
data: | ||
- oid: | ||
- outletTable | ||
temperature: | ||
options: | ||
skip_values: [999, 99999] | ||
data: | ||
- | ||
oid: temperature1 | ||
value: temperature1 | ||
num_oid: '.1.3.6.1.4.1.1418.6.6.5.{{ $index }}' | ||
index: 'temp1.{{ $index }}' | ||
descr: 'Temperature 1' | ||
- | ||
oid: temperature2 | ||
value: temperature2 | ||
num_oid: '.1.3.6.1.4.1.1418.6.6.6.{{ $index }}' | ||
index: 'temp2.{{ $index }}' | ||
descr: 'Temperature 2' | ||
current: | ||
data: | ||
- | ||
oid: currentLC1 | ||
value: currentLC1 | ||
num_oid: '.1.3.6.1.4.1.1418.6.6.2.{{ $index }}' | ||
index: 'currentLC1.{{ $index }}' | ||
descr: 'Current LC1' | ||
divisor: 100 | ||
- | ||
oid: currentLC2 | ||
value: currentLC2 | ||
num_oid: '.1.3.6.1.4.1.1418.6.6.4.{{ $index }}' | ||
index: 'currentLC2.{{ $index }}' | ||
descr: 'Current LC2' | ||
divisor: 100 | ||
voltage: | ||
data: | ||
- | ||
oid: voltageLC1 | ||
value: voltageLC1 | ||
num_oid: '.1.3.6.1.4.1.1418.6.6.1.{{ $index }}' | ||
index: 'voltageLC1.{{ $index }}' | ||
descr: 'Voltage LC1' | ||
divisor: 100 | ||
- | ||
oid: voltageLC2 | ||
value: voltageLC2 | ||
num_oid: '.1.3.6.1.4.1.1418.6.6.3.{{ $index }}' | ||
index: 'voltageLC2.{{ $index }}' | ||
descr: 'Voltage LC2' | ||
divisor: 100 | ||
state: | ||
data: | ||
- | ||
oid: outletTable | ||
value: outletActualStatus | ||
num_oid: '.1.3.6.1.4.1.1418.6.5.1.7.{{ $index }}' | ||
descr: '{{ $outletName }} (ID {{ $index }})' | ||
group: 'Actual Status' | ||
states: | ||
- { value: 1, generic: 0, descr: on, graph: 0 } | ||
- { value: 0, generic: 3, descr: off, graph: 0 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
os: iboot | ||
text: 'iBoot PDU' | ||
type: power | ||
icon: dataprobe | ||
rfc1628_compat: true | ||
mib_dir: | ||
- dataprobe | ||
over: | ||
- { graph: device_processor, text: 'CPU Usage' } | ||
- { graph: device_current, text: Current } | ||
- { graph: device_voltage, text: Voltage } | ||
discovery: | ||
- | ||
sysObjectID: .1.3.6.1.4.1.8072.3.2.10 | ||
sysDescr_regex: | ||
- '/ibootpdu/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
$tmp_iboot = snmp_get_multi($device, ['IBOOTPDU-MIB::firmwareVersion.0', 'IBOOTPDU-MIB::deviceModelName.0'], '-OQUs'); | ||
|
||
$version = trim($tmp_iboot[0]['firmwareVersion'], '"'); | ||
$hardware = trim($tmp_iboot[0]['deviceModelName'], '"'); | ||
|
||
unset($tmp_iboot); |
Oops, something went wrong.