[-]
[+]
|
Changed |
nagios-plugins-disks.changes
|
|
[-]
[+]
|
Changed |
nagios-plugins-disks.spec
^
|
|
[-]
[+]
|
Changed |
check_disks
^
|
@@ -5,7 +5,10 @@
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
- #a=`readlink -e ${a}`
+ b=`readlink -e ${a}`
+ if [ "`mount | grep ^${b} | wc -l`" == "1" ] ; then
+ a=${b}
+ fi
if [ -d /etc/nagios/check_disks/ ] ; then
b=`echo ${a} | sed -e s@"/"@"_"@g`
if [ -s /etc/nagios/check_disks/${b} ] ; then
|