improve junos mountpoint strings

git-svn-id: http://www.observium.org/svn/observer/trunk@748 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-30 12:48:32 +00:00
parent 5221893dc8
commit c896c3c06a

View File

@@ -22,7 +22,7 @@
if (isset($config['ignore_mount_removable']) && $config['ignore_mount_removable'] && $fstype == "hrStorageRemovableDisk") { $allow = 0; if ($debug) echo("removable, skipping\n"); }
if (isset($config['ignore_mount_network']) && $config['ignore_mount_network'] && $fstype == "hrStorageNetworkDisk") { $allow = 0; if ($debug) echo("network, skipping\n"); }
$descr = str_replace("mounted on: ", "", $descr);
$descr = str_replace(": var file system", "", $descr);
$descr = preg_replace("/: [A-Za-z0-9_]+ file system, /", ", ", $descr);
if($size > '0' && $allow) {
if(mysql_result(mysql_query("SELECT count(storage_id) FROM `storage` WHERE hrStorageIndex = '$hrStorageIndex' AND host_id = '".$device['device_id']."'"),0) == '0') {