Alcatel-Lucent Omniswitch device memory pool discovery & polling

git-svn-id: http://www.observium.org/svn/observer/trunk@1963 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-03-23 11:40:50 +00:00
parent bfd5377991
commit 95565b19de
2 changed files with 38 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
global $valid_mempool;
if ($device['os'] == "aos")
{
echo("Alcatel-Lucent OS: ");
$total = snmp_get($device, "systemHardwareMemorySize.0", "-OvQ", "ALCATEL-IND1-SYSTEM-MIB", "+".$config['install_dir']."/mibs/aos");
$percent = snmp_get($device, "healthDeviceMemoryLatest.0", "-OvQ", "ALCATEL-IND1-HEALTH-MIB", "+".$config['install_dir']."/mibs/aos");
$used = $total / 100 * $perc_used;
$free = $total - $used;
if (is_numeric($total) && is_numeric($used))
{
discover_mempool($valid_mempool, $device, 0, "aos-device", "Memory", "1", NULL, NULL);
}
}
?>