diff --git a/html/pages/device/overview/storage.inc.php b/html/pages/device/overview/storage.inc.php index 8b8b0a5456..542d128fa7 100644 --- a/html/pages/device/overview/storage.inc.php +++ b/html/pages/device/overview/storage.inc.php @@ -17,6 +17,7 @@ if(mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE device_ $skipdrive = 1; } } + $drive["storage_descr"] = preg_replace("/.*mounted on: (.*)/", "\\1", $drive["storage_descr"]); } if ($skipdrive) { continue; } diff --git a/html/pages/storage.php b/html/pages/storage.php index 5cab85dd9c..e0aa8b0e75 100644 --- a/html/pages/storage.php +++ b/html/pages/storage.php @@ -32,6 +32,7 @@ while($drive = mysql_fetch_array($query)) { $skipdrive = 1; } } + $drive["storage_descr"] = preg_replace("/.*mounted on: (.*)/", "\\1", $drive["storage_descr"]); } if ($skipdrive) { continue; } diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 0b0bbfbd3a..e6cfae0219 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -94,6 +94,6 @@ $config['ignore_mount_string'] = array("packages", "devfs", "procfs", "UMA", "MA $config['ignore_mount_regexp'] = array(); $config['ignore_mount_removable'] = 1; # Ignore removable disk storage $config['ignore_mount_network'] = 1; # Ignore network mounted storage -$config['ignore_junos_os_drives'] = array("/, \/packages/", "/, \/dev/", "/, \/proc/"); # Ignore JunOS partitions who are always 100% +$config['ignore_junos_os_drives'] = array("/on: \/packages/", "/on: \/dev/", "/on: \/proc/"); # Ignore JunOS partitions who are always 100% ?>