mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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') {
|
||||
|
Reference in New Issue
Block a user