mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
11 lines
288 B
PHP
11 lines
288 B
PHP
|
<?php
|
||
|
// Simple hard-coded poller for Pulse Secure
|
||
|
echo 'Viprinet Secure CPU Usage';
|
||
|
|
||
|
if ($device['os'] == 'viprinet') {
|
||
|
$usage = str_replace('"',"", snmp_get($device, 'VIPRINET-MIB::vpnRouterCPULoad.0', '-OvQ'));
|
||
|
if (is_numeric($usage)) {
|
||
|
$proc = ($usage * 100);
|
||
|
}
|
||
|
}
|