mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Alcatel-Lucent Omniswitch sytem CPU discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@1964 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -14,7 +14,7 @@ if ($device['os'] == "aos")
|
|||||||
|
|
||||||
if (is_numeric($total) && is_numeric($used))
|
if (is_numeric($total) && is_numeric($used))
|
||||||
{
|
{
|
||||||
discover_mempool($valid_mempool, $device, 0, "aos-device", "Memory", "1", NULL, NULL);
|
discover_mempool($valid_mempool, $device, 0, "aos-device", "Device Memory", "1", NULL, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
global $valid_processor;
|
||||||
|
|
||||||
|
## Hardcoded discovery of device CPU usage on Alcatel-Lucent Omniswitches.
|
||||||
|
##
|
||||||
|
|
||||||
|
|
||||||
|
if ($device['os'] == "aos")
|
||||||
|
{
|
||||||
|
echo("Alcatel-Lucent Device : ");
|
||||||
|
|
||||||
|
$descr = "Device CPU";
|
||||||
|
$usage = snmp_get($device, "1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.13.0", "-OQUvs", "ALCATEL-IND1-HEALTH-MIB", $config['mib_dir'].":".$config['mib_dir']."/aos");
|
||||||
|
|
||||||
|
if (is_numeric($usage))
|
||||||
|
{
|
||||||
|
discover_processor($valid_processor, $device, "1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.13.0", "0", "aos-system", $descr, "1", $usage, NULL, NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unset ($processors_array);
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user