fix status setting for down also add new storage image :>

git-svn-id: http://www.observium.org/svn/observer/trunk@1010 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-03-12 02:24:23 +00:00
parent d62c8aedc8
commit b230457eb7
3 changed files with 11 additions and 10 deletions
@@ -18,6 +18,7 @@ if(is_array($storage_array)) {
if (isset($config['ignore_mount_removable']) && $config['ignore_mount_removable'] && $fstype == "hrStorageRemovableDisk") { $deny = 1; if ($debug) echo("skip(removable)\n"); }
if (isset($config['ignore_mount_network']) && $config['ignore_mount_network'] && $fstype == "hrStorageNetworkDisk") { $deny = 1; if ($debug) echo("skip(network)\n"); }
if (isset($config['ignore_mount_optical']) && $config['ignore_mount_optical'] && $fstype == "hrStorageCompactDisc") { $deny = 1; if ($debug) echo("skip(cd)\n"); }
if ($fstype == "hrStorageVirtualMemory" || $fstype == "hrStorageRam" || $fstype == "hrStorageOther") { $deny = 1; }
if(!$deny && is_numeric($index)) {
discover_storage($valid_storage, $device, $index, $fstype, "hrstorage", $descr, $size , $units, $used);