mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
12 lines
252 B
PHP
12 lines
252 B
PHP
![]() |
<?php
|
||
|
|
||
|
echo 'ProxySG CPU Usage';
|
||
|
|
||
|
if ($device['os'] == 'sgos') {
|
||
|
$usage = str_replace('"', "", snmp_get($device, 'BLUECOAT-SG-PROXY-MIB::sgProxyCpuCoreBusyPerCent.0', '-OvQ'));
|
||
|
|
||
|
if (is_numeric($usage)) {
|
||
|
$proc = ($usage * 100);
|
||
|
}
|
||
|
}
|