small fixes and updates

git-svn-id: http://www.observium.org/svn/observer/trunk@541 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-12-02 23:50:09 +00:00
parent 284e7fbc23
commit 22552419f8
4 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
list($units) = explode(" ", $units);
$allow = 1;
foreach($config['ignore_mount'] as $bi) { if($bi == $descr) { $allow = 0; } }
foreach($config['ignore_mount_string'] as $bi) { if(strpos($descr, $bi) !== FALSE) { $allow = 0; } else { echo("$descr -> $bi \n"); } }
foreach($config['ignore_mount_string'] as $bi) { if(strpos($descr, $bi) !== FALSE) { $allow = 0; } }
foreach($config['ignore_mount_regexp'] as $bi) { if(preg_match($bi, $descr)) { $allow = 0; } }
$descr = str_replace("mounted on: ", "", $descr);
$descr = str_replace(": var file system", "", $descr);