mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
19 lines
613 B
PHP
19 lines
613 B
PHP
<?php
|
|
|
|
//
|
|
// Hardcoded discovery of cpu usage on WatchGuard devices.
|
|
//
|
|
// WATCHGUARD-SYSTEM-STATISTICS-MIB::wgSystemCpuUtil5.0 = COUNTER: 123
|
|
if ($device['os'] == 'firebox') {
|
|
echo 'Watchguard Firebox : ';
|
|
|
|
$descr = 'Processor';
|
|
$usage = snmp_get($device, '.1.3.6.1.4.1.3097.6.3.78.0', '-OQUvs', 'WATCHGUARD-SYSTEM-STATISTICS-MIB', $config['mib_dir'].':'.$config['mib_dir'].'/watchguard');
|
|
|
|
if (is_numeric($usage)) {
|
|
discover_processor($valid['processor'], $device, '1.3.6.1.4.1.3097.6.3.78.0', '0', 'firebox-fixed', $descr, '100', $usage, null, null);
|
|
}
|
|
}
|
|
|
|
unset($processors_array);
|