Skip to content

Commit

Permalink
Added iBoot PDU (dataprobe) support (#10898)
Browse files Browse the repository at this point in the history
* os-recognition iboot
* tests
* MIB
* skip_values
  • Loading branch information
PipoCanaja committed Dec 3, 2019
1 parent cd044ad commit f4fbdfa
Show file tree
Hide file tree
Showing 7 changed files with 2,042 additions and 0 deletions.
Binary file added html/images/logos/dataprobe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions includes/definitions/discovery/iboot.yaml
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 }
16 changes: 16 additions & 0 deletions includes/definitions/iboot.yaml
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/'
7 changes: 7 additions & 0 deletions includes/polling/os/iboot.inc.php
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);
Loading

0 comments on commit f4fbdfa

Please sign in to comment.