From f9be9682c1c6fba14e6228d8531027dc273352f0 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Sun, 21 Feb 2010 01:57:16 +0000 Subject: [PATCH] - Addon to r896. git-svn-id: http://www.observium.org/svn/observer/trunk@901 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/overview/hrStorage.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/html/pages/device/overview/hrStorage.inc.php b/html/pages/device/overview/hrStorage.inc.php index fee344de4..3c0c3fb6b 100644 --- a/html/pages/device/overview/hrStorage.inc.php +++ b/html/pages/device/overview/hrStorage.inc.php @@ -8,6 +8,18 @@ if(mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE host_id $drives = mysql_query("SELECT * FROM `storage` WHERE host_id = '" . $device['device_id'] . "'"); while($drive = mysql_fetch_array($drives)) { + + $skipdrive = 0; + + if ($device["os"] == "junos") { + foreach ($config['ignore_junos_os_drives'] as $jdrive) { + if (preg_match($jdrive, $drive["hrStorageDescr"])) { + $skipdrive = 1; + } + } + } + + if ($skipdrive) { continue; } if(is_integer($drive_rows/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } $total = $drive['hrStorageSize'] * $drive['hrStorageAllocationUnits']; $used = $drive['hrStorageUsed'] * $drive['hrStorageAllocationUnits'];