mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
more cleanups and reindents, still a lot to come
git-svn-id: http://www.observium.org/svn/observer/trunk@1836 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,21 +6,19 @@ global $valid_processor;
|
||||
## Hardcoded discovery of cpu usage on RADLAN devices.
|
||||
##
|
||||
|
||||
|
||||
if($device['os'] == "radlan")
|
||||
if ($device['os'] == "radlan")
|
||||
{
|
||||
echo("RADLAN : ");
|
||||
|
||||
$descr = "Processor";
|
||||
$usage = snmp_get($device, ".1.3.6.1.4.1.89.1.9.0", "-OQUvs", "RADLAN-rndMng", $config['mib_dir'].":".$config['mib_dir']."/radlan");
|
||||
|
||||
if(is_numeric($usage))
|
||||
{
|
||||
discover_processor($valid_processor, $device, ".1.3.6.1.4.1.89.1.9.0", "0", "radlan", $descr, "1", $usage, NULL, NULL);
|
||||
}
|
||||
$descr = "Processor";
|
||||
$usage = snmp_get($device, ".1.3.6.1.4.1.89.1.9.0", "-OQUvs", "RADLAN-rndMng", $config['mib_dir'].":".$config['mib_dir']."/radlan");
|
||||
|
||||
if (is_numeric($usage))
|
||||
{
|
||||
discover_processor($valid_processor, $device, ".1.3.6.1.4.1.89.1.9.0", "0", "radlan", $descr, "1", $usage, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
unset ($processors_array);
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user