mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
- 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:
@@ -17,6 +17,7 @@ if(mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE device_
|
|||||||
$skipdrive = 1;
|
$skipdrive = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$drive["storage_descr"] = preg_replace("/.*mounted on: (.*)/", "\\1", $drive["storage_descr"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($skipdrive) { continue; }
|
if ($skipdrive) { continue; }
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ while($drive = mysql_fetch_array($query)) {
|
|||||||
$skipdrive = 1;
|
$skipdrive = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$drive["storage_descr"] = preg_replace("/.*mounted on: (.*)/", "\\1", $drive["storage_descr"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($skipdrive) { continue; }
|
if ($skipdrive) { continue; }
|
||||||
|
|||||||
@@ -94,6 +94,6 @@ $config['ignore_mount_string'] = array("packages", "devfs", "procfs", "UMA", "MA
|
|||||||
$config['ignore_mount_regexp'] = array();
|
$config['ignore_mount_regexp'] = array();
|
||||||
$config['ignore_mount_removable'] = 1; # Ignore removable disk storage
|
$config['ignore_mount_removable'] = 1; # Ignore removable disk storage
|
||||||
$config['ignore_mount_network'] = 1; # Ignore network mounted 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%
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user