Advertisement
Guest User

eltek-distributed-mib.inc.php.diff

a guest
Nov 5th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.87 KB | None | 0 0
  1. --- eltek-distributed-mib.inc.php.og    2020-11-05 10:39:18.654540818 +0100
  2. +++ eltek-distributed-mib.inc.php       2020-11-03 14:15:41.101471732 +0100
  3. @@ -96,4 +96,11 @@
  4.  
  5.  discover_sensor_ng($device, 'current', $mib, $oid_name, $oid, '0', NULL, $descr, $scale, $value, $options);
  6.  
  7. +$rectCurrent = snmp_get_oid($device, '.1.3.6.1.4.1.12148.9.5.3.0',                 'ELTEK-DISTRIBUTED-MIB');
  8. +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, []);
  9. +
  10. +$rectUtilOptions = ['sensor_unit' => '%'];
  11. +$rectUtil = snmp_get_oid($device, '.1.3.6.1.4.1.12148.9.5.4.0',                 'ELTEK-DISTRIBUTED-MIB');
  12. +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);
  13. +
  14.  // EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement