mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Add Ipoman power consumption support (#10244)
* Add Ipoman power consumption support * Create ipoman.json
This commit is contained in:
parent
9faae11381
commit
93f3528bbf
17
includes/discovery/sensors/power_consumed/ipoman.inc.php
Normal file
17
includes/discovery/sensors/power_consumed/ipoman.inc.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
echo ' IPOMANII-MIB ';
|
||||
|
||||
$oids_out = [];
|
||||
|
||||
d_echo('outletStatusKwatt ');
|
||||
$oids_out = snmpwalk_cache_multi_oid($device, 'outletStatusKwatt', $oids_out, 'IPOMANII-MIB');
|
||||
|
||||
if (is_array($oids_out)) {
|
||||
foreach ($oids_out as $index => $entry) {
|
||||
$power_consumed_oid = '.1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.'.$index;
|
||||
$divisor = 1000;
|
||||
$descr = (trim($pre_cache['ipoman']['out'][$index]['outletConfigDesc'], '"') != '' ? trim($pre_cache['ipoman']['out'][$index]['outletConfigDesc'], '"') : "Output $index");
|
||||
discover_sensor($valid['sensor'], 'power_consumed', $device, $power_consumed_oid, $power_consumed_oid, 'ipoman', $descr, $divisor, 1, 0, null, null, 0);
|
||||
}
|
||||
}
|
1712
tests/data/ipoman.json
Normal file
1712
tests/data/ipoman.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,166 @@
|
||||
1.3.6.1.2.1.1.1.0|4|
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2468.1.4.2.1
|
||||
1.3.6.1.2.1.1.3.0|67|489587517
|
||||
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.2.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|UM9008
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|7
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|1500
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|10000000
|
||||
1.3.6.1.2.1.2.2.1.6.1|4x|00E0D80CE463
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.9.1|67|1
|
||||
1.3.6.1.2.1.2.2.1.10.1|65|386610209
|
||||
1.3.6.1.2.1.2.2.1.11.1|65|142537
|
||||
1.3.6.1.2.1.2.2.1.12.1|65|5792622
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.1|65|15731717
|
||||
1.3.6.1.2.1.2.2.1.17.1|65|141910
|
||||
1.3.6.1.2.1.2.2.1.18.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.21.1|66|16
|
||||
1.3.6.1.2.1.2.2.1.22.1|6|1.3.6.1
|
||||
1.3.6.1.2.1.4.20.1.2.1|2|1
|
||||
1.3.6.1.2.1.4.20.1.3.1|65|16777215
|
||||
1.3.6.1.2.1.4.22.1.2.1|4x|FFFFFFFFFFFF
|
||||
1.3.6.1.2.1.4.22.1.2.7|4x|00259004D70D
|
||||
1.3.6.1.2.1.5.1.0|65|4582
|
||||
1.3.6.1.2.1.5.2.0|65|0
|
||||
1.3.6.1.2.1.5.3.0|65|0
|
||||
1.3.6.1.2.1.5.4.0|65|0
|
||||
1.3.6.1.2.1.5.5.0|65|0
|
||||
1.3.6.1.2.1.5.6.0|65|0
|
||||
1.3.6.1.2.1.5.7.0|65|0
|
||||
1.3.6.1.2.1.5.8.0|65|4582
|
||||
1.3.6.1.2.1.5.9.0|65|0
|
||||
1.3.6.1.2.1.5.10.0|65|0
|
||||
1.3.6.1.2.1.5.11.0|65|0
|
||||
1.3.6.1.2.1.5.12.0|65|0
|
||||
1.3.6.1.2.1.5.13.0|65|0
|
||||
1.3.6.1.2.1.5.14.0|65|4582
|
||||
1.3.6.1.2.1.5.15.0|65|0
|
||||
1.3.6.1.2.1.5.16.0|65|0
|
||||
1.3.6.1.2.1.5.17.0|65|0
|
||||
1.3.6.1.2.1.5.18.0|65|0
|
||||
1.3.6.1.2.1.5.19.0|65|0
|
||||
1.3.6.1.2.1.5.20.0|65|0
|
||||
1.3.6.1.2.1.5.21.0|65|4582
|
||||
1.3.6.1.2.1.5.22.0|65|0
|
||||
1.3.6.1.2.1.5.23.0|65|0
|
||||
1.3.6.1.2.1.5.24.0|65|0
|
||||
1.3.6.1.2.1.5.25.0|65|0
|
||||
1.3.6.1.2.1.5.26.0|65|0
|
||||
1.3.6.1.2.1.11.1.0|65|133460
|
||||
1.3.6.1.2.1.11.2.0|65|133436
|
||||
1.3.6.1.2.1.11.3.0|65|24
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
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|127447
|
||||
1.3.6.1.2.1.11.14.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|35747
|
||||
1.3.6.1.2.1.11.16.0|65|97703
|
||||
1.3.6.1.2.1.11.17.0|65|0
|
||||
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|33863
|
||||
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|133460
|
||||
1.3.6.1.2.1.11.29.0|65|0
|
||||
1.3.6.1.2.1.11.30.0|65|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.1.3.0|4|PDU System v1.05 (SN 1113016920004)
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.2.1|4|
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.2.2|4|
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.3.1|2|240
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.3.2|2|240
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.5.1|2|200
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.5.2|2|200
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.7.1|2|160
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.7.2|2|160
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.9.1|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.9.2|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.11.1|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.2.1.11.2|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.3.1.2.1|2|2240
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.3.1.2.2|2|2244
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.3.1.3.1|2|3830
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.3.1.3.2|2|80
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.3.1.4.1|2|500
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.1.3.1.4.2|2|500
|
||||
1.3.6.1.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.4.1.2468.1.4.2.1.3.2.2.1.3.12|4|
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.1|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.2|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.3|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.4|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.5|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.6|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.7|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.8|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.9|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.10|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.11|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.2.1.6.12|2|100
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.1|2|400
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.2|2|510
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.3|2|260
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.4|2|900
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.5|2|900
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.6|2|870
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.7|2|80
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.8|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.9|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.10|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.11|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.3.12|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.1|2|272099
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.2|2|134075
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.3|2|169909
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.4|2|246595
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.5|2|275576
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.6|2|261459
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.7|2|27757
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.8|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.9|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.10|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.11|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.3.2.3.1.4.12|2|0
|
||||
1.3.6.1.4.1.2468.1.4.2.1.5.1.1.1.0|2|2
|
||||
|
Loading…
Reference in New Issue
Block a user