- JunOS support for the storage rewrite.

git-svn-id: http://www.observium.org/svn/observer/trunk@945 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Geert Hauwaerts 2010-02-24 18:24:28 +00:00
parent 8fdc2416f8
commit eb7ffda978
3 changed files with 3 additions and 1 deletions

View File

@ -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; }

View File

@ -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; }

View File

@ -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%
?>