From c84a1224ad8b12f6172e5fc6a4a05d27c027d2ea Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 16 Mar 2010 17:00:00 +0000 Subject: [PATCH] fix mempool a bit git-svn-id: http://www.observium.org/svn/observer/trunk@1030 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/mempools-hrstorage.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/discovery/mempools-hrstorage.inc.php b/includes/discovery/mempools-hrstorage.inc.php index 4e05e568b..983940318 100755 --- a/includes/discovery/mempools-hrstorage.inc.php +++ b/includes/discovery/mempools-hrstorage.inc.php @@ -13,7 +13,9 @@ if(is_array($storage_array)) { $units = $storage['hrStorageAllocationUnits']; $deny = 1; - if ($fstype == "hrStorageVirtualMemory" || $fstype == "hrStorageRam" || $fstype == "hrStorageOther") { $deny = 0; } + if ($fstype == "hrStorageVirtualMemory" || $fstype == "hrStorageRam") { $deny = 0; } + + if(strstr($descr, "MALLOC") || strstr($descr, "UMA")) { $deny = 1; } ## Ignore FreeBSD INSANITY if(!$deny && is_numeric($index)) { discover_mempool($valid_mempool, $device, $index, "hrstorage", $descr, $units, NULL, NULL);