2016-12-15 08:23:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
echo 'ProxySG CPU Usage';
|
|
|
|
|
|
2017-04-15 02:01:45 +01:00
|
|
|
$usage = str_replace('"', "", snmp_get($device, 'BLUECOAT-SG-PROXY-MIB::sgProxyCpuCoreBusyPerCent.0', '-OvQ'));
|
2016-12-15 08:23:25 +00:00
|
|
|
|
2017-04-15 02:01:45 +01:00
|
|
|
if (is_numeric($usage)) {
|
|
|
|
|
$proc = ($usage * 100);
|
2016-12-15 08:23:25 +00:00
|
|
|
}
|