Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- eltek-distributed-mib.inc.php.og 2020-11-05 10:39:18.654540818 +0100
- +++ eltek-distributed-mib.inc.php 2020-11-03 14:15:41.101471732 +0100
- @@ -96,4 +96,11 @@
- discover_sensor_ng($device, 'current', $mib, $oid_name, $oid, '0', NULL, $descr, $scale, $value, $options);
- +$rectCurrent = snmp_get_oid($device, '.1.3.6.1.4.1.12148.9.5.3.0', 'ELTEK-DISTRIBUTED-MIB');
- +discover_sensor_ng($device,'current', $mib, 'rectifierTotalCurrent', '.1.3.6.1.4.1.12148.9.5.3.0', 0, NULL, 'Rectifier Total Current', 1, $rectCurrent, []);
- +
- +$rectUtilOptions = ['sensor_unit' => '%'];
- +$rectUtil = snmp_get_oid($device, '.1.3.6.1.4.1.12148.9.5.4.0', 'ELTEK-DISTRIBUTED-MIB');
- +discover_sensor_ng($device,'load', $mib, 'rectifierUtilization', '.1.3.6.1.4.1.12148.9.5.4.0', 0, NULL, 'Rectifier Utilization', 1, $rectUtil, $rectUtilOptions);
- +
- // EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement