mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
watchguard firebox detection and cpu support
git-svn-id: http://www.observium.org/svn/observer/trunk@2782 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user