. * * @package LibreNMS * @link http://librenms.org * @copyright 2017 Lorenzo Zafra * @author Lorenzo Zafra */ // Output Current // SNMPv2-SMI::enterprises.39145.11.8.0 = STRING: "0.4" -- outputCurrent $outputCurrent = trim(snmp_get($device, 'outputCurrent.0', '-Oqv', 'ICT-MIB'), '" '); if (!empty($outputCurrent)) { $divisor = 1; $index = 0; $oid = '.1.3.6.1.4.1.39145.11.8.0'; $descr = 'Output Current'; $type = 'ict-psu'; $currentValue = $outputCurrent / $divisor; discover_sensor($valid['sensor'], 'current', $device, $oid, $index, $type, $descr, $divisor, '1', null, null, null, null, $currentValue); }