[-]
[+]
|
Changed |
nagios-plugins-disks.changes
|
|
[-]
[+]
|
Changed |
nagios-plugins-disks.spec
^
|
|
[-]
[+]
|
Changed |
check_disks
^
|
@@ -4,7 +4,7 @@
rm -rf ${CHECK_MULTI_CMD_FILE}
-for a in `grep -E '(xfs|ext2|ext3|ext4|btrfs|reiserfs|vfat|tmpfs|vzfs)' /proc/mounts | awk '{print $1}' | grep ^/ | grep -v -E '(^/vz/template:)' | sort -u` ; do
+for a in `grep -E '(xfs|ext2|ext3|ext4|btrfs|reiserfs|vfat|tmpfs|vzfs)' /proc/mounts | awk '{print $1}' | grep ^/ | grep -v -E '(^/vz/template:|^/dev$)' | sort -u` ; do
b=`readlink -e ${a}`
if [ "`mount | grep ^${b} | wc -l`" == "1" ] ; then
a=${b}
|