<?php

$mib = 'genEquipUnitIduVoltageInput.0';
$oid = '.1.3.6.1.4.1.2281.10.1.1.10.0';
$oids = snmp_get($device, $mib, '-OsqnU', 'MWRM-UNIT-MIB');
d_echo($oids . "\n");

if (! empty($oids)) {
    echo ' Ceragon CeraOS Voltage ';

    $divisor = 1;
    $type = 'ceraos';

    [,$current] = explode(' ', $oids);
    $index = $oid;
    $descr = 'System voltage';
    discover_sensor(null, 'voltage', $device, $oid, $index, $type, $descr, $divisor, '1', null, null, null, null, $current);
}
