2010-07-23 18:15:54 +00:00
< ? php
2015-07-13 20:10:26 +02:00
if ( $device [ 'os' ] == 'screenos' && dbFetchCell ( " SELECT COUNT(*) FROM `processors` WHERE `device_id` = ? AND `processor_type` != 'screenos' " , array ( $device [ 'device_id' ])) == '0' ) {
// .1.3.6.1.4.1.3224.16.1.3.0 Cpu Last 5 Minutes
// discover_processor(&$valid, $device, $oid, $index, $type, $descr, $precision = "1", $current = NULL, $entPhysicalIndex = NULL, $hrDeviceIndex = NULL)
echo 'ScreenOS ' ;
2010-07-23 18:15:54 +00:00
2015-07-13 20:10:26 +02:00
$percent = snmp_get ( $device , '.1.3.6.1.4.1.3224.16.1.3.0' , '-OvQ' );
2010-07-23 18:15:54 +00:00
2015-07-13 20:10:26 +02:00
if ( is_numeric ( $percent )) {
discover_processor ( $valid [ 'processor' ], $device , '.1.3.6.1.4.1.3224.16.1.3.0' , '1' , 'screenos' , 'Processor' , '1' , $percent , null , null );
}
2010-07-23 18:15:54 +00:00
}