$ip is unavailable"; continue; } //print_r(SNMP_VALUE_PLAIN); //snmp_set_valueretrieval(SNMP_VALUE_LIBRARY); snmp_set_valueretrieval(SNMP_VALUE_PLAIN); $loc = snmpget($ip, $community, $oin_loc, $timeout, $retries); $sta = snmpget($ip, $community, $oin_sta, $timeout, $retries); $cya = snmpget($ip, $community, $oin_cya, $timeout, $retries);////*100/30000; //colours are calculated at a value out of 30000 $mag = snmpget($ip, $community, $oin_mag, $timeout, $retries);////*100/30000; $yel = snmpget($ip, $community, $oin_yel, $timeout, $retries);////*100/30000; $blk = snmpget($ip, $community, $oin_blk, $timeout, $retries);////*100/45000; //high-capacity black is value out of 45000 $tr1 = snmpget($ip, $community, $oin_tr1, $timeout, $retries)*100/100; //paper levels value out of 520 $tr2 = snmpget($ip, $community, $oin_tr2, $timeout, $retries)*100/550; $tr3 = snmpget($ip, $community, $oin_tr3, $timeout, $retries)*100/550; ////$tr4 = snmpget($ip, $community, $oin_tr4, $timeout, $retries)*100/520; $srl = snmpget($ip, $community, $oin_srl, $timeout, $retries); $typ1 = 'A4'; $typ2 = 'A4'; $typ3 = 'A3'; ////$typ4 = 'A3'; if ($sta==2) $sta = "OK"; //changed header colour based on status if ($sta==3) $sta = "Warning"; if ($sta==5) $sta = "ERROR"; echo "