r0tty,
I tested this on a lab system, and everything appears to be in working order. I replicated your setup on CentOS6 first (ignore the hostname, it's not running OpenSUSE):
Code: Select all
[root@suse11 misc]# cat /etc/auto.misc
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
test2 -rw,soft,intr,rsize=8192,wsize=8192 192.168.x.x:/mnt/test2
test3 -rw,soft,intr,rsize=8192,wsize=8192 192.168.x.x:/mnt/test3
test4 -rw,soft,intr,rsize=8192,wsize=8192 192.168.x.x:/mnt/test4
Code: Select all
[root@suse11 misc]# cd /misc
[root@suse11 misc]# cd test2
[root@suse11 test2]# cd ../test3
[root@suse11 test3]# cd ../test4
[root@suse11 test4]# cd ..
[root@suse11 misc]# /usr/local/nagios/libexec/check_disk -w 5 -c 10
DISK OK - free space: / 3687 MB (52% inode=76%); /dev/shm 497 MB (100% inode=99%); /boot 380 MB (84% inode=99%); /misc/test2 4867 MB (68% inode=84%); /misc/test3 4867 MB (68% inode=84%); /misc/test4 4867 MB (68% inode=84%);| /=3397MB;7465;7460;0;7470 /dev/shm=0MB;492;487;0;497 /boot=70MB;471;466;0;476 /misc/test2=2217MB;7465;7460;0;7470 /misc/test3=2217MB;7465;7460;0;7470 /misc/test4=2217MB;7465;7460;0;7470
[root@suse11 misc]# umount test4
[root@suse11 misc]# /usr/local/nagios/libexec/check_disk -w 5 -c 10
DISK OK - free space: / 3687 MB (52% inode=76%); /dev/shm 497 MB (100% inode=99%); /boot 380 MB (84% inode=99%); /misc/test2 4867 MB (68% inode=84%); /misc/test3 4867 MB (68% inode=84%);| /=3397MB;7465;7460;0;7470 /dev/shm=0MB;492;487;0;497 /boot=70MB;471;466;0;476 /misc/test2=2217MB;7465;7460;0;7470 /misc/test3=2217MB;7465;7460;0;7470
[root@suse11 misc]# /usr/local/nagios/libexec/check_disk -w 5 -c 10 -l
DISK OK - free space: / 3687 MB (52% inode=76%); /dev/shm 497 MB (100% inode=99%); /boot 380 MB (84% inode=99%);| /=3397MB;7465;7460;0;7470 /dev/shm=0MB;492;487;0;497 /boot=70MB;471;466;0;476
According to the above, the results are in line with my expectations.
Additional information:
Code: Select all
[root@suse11 misc]# findmnt
TARGET SOURCE FSTYPE OPTIONS
/ /dev/mapper/VolGroup-lv_root ext4 rw,relatime,barrier=1,data=ordered
├─/proc proc proc rw,relatime
│ ├─/proc/bus/usb /proc/bus/usb usbfs rw,relatime
│ └─/proc/sys/fs/binfmt_misc binfmt_misc rw,relatime
├─/sys sysfs sysfs rw,relatime
├─/dev devtmpfs devtmpfs rw,relatime,size=496228k,nr_inodes=124057,mode=755
│ ├─/dev/pts devpts devpts rw,relatime,gid=5,mode=620,ptmxmode=000
│ └─/dev/shm tmpfs tmpfs rw,relatime
├─/boot /dev/sda1 ext4 rw,relatime,barrier=1,data=ordered
├─/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
├─/misc /etc/auto.misc autofs rw,relatime,fd=7,pgrp=11070,timeout=60,minproto=5,maxproto=5,indire
│ ├─/misc/test2 192.168.x.x:/mnt/test2[/test2] nfs4 rw,relatime,vers=4,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,
│ └─/misc/test3 192.168.x.x:/mnt/test3[/test3] nfs4 rw,relatime,vers=4,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,
└─/net -hosts autofs rw,relatime,fd=13,pgrp=11070,timeout=300,minproto=5,maxproto=5,indi
Moving on to CentOS7:
Code: Select all
[root@localhost misc]# cat /etc/*relea*
CentOS Linux release 7.1.1503 (Core)
Derived from Red Hat Enterprise Linux 7.1 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.1.1503 (Core)
CentOS Linux release 7.1.1503 (Core)
cpe:/o:centos:centos:7
rpm -q autofs
autofs-5.0.7-54.el7.x86_64
rpm -q nfs-utils
nfs-utils-1.3.0-0.21.el7.x86_64
/usr/local/nagios/libexec/check_disk --help | head -n1
check_disk v2.0.3 (nagios-plugins 2.0.3)
[root@localhost misc]# cd /misc
[root@localhost misc]# ls test2
[root@localhost misc]# ls test3
[root@localhost misc]# ls test4
[root@localhost misc]# /usr/local/nagios/libexec/check_disk -w 5 -c 10
DISK OK - free space: / 15825 MB (87% inode=99%); /dev 481 MB (100% inode=99%); /dev/shm 489 MB (100% inode=99%); /run 440 MB (89% inode=99%); /sys/fs/cgroup 489 MB (100% inode=99%); /boot 148 MB (50% inode=99%); /run/user/0 97 MB (100% inode=99%); /run/user/1001 97 MB (100% inode=99%); /misc/test2 4867 MB (68% inode=84%); /misc/test3 4867 MB (68% inode=84%); /misc/test4 4867 MB (68% inode=84%);| /=2295MB;18116;18111;0;18121 /dev=0MB;476;471;0;481 /dev/shm=0MB;484;479;0;489 /run=49MB;484;479;0;489 /sys/fs/cgroup=0MB;484;479;0;489 /boot=148MB;291;286;0;296 /run/user/0=0MB;92;87;0;97 /run/user/1001=0MB;92;87;0;97 /misc/test2=2217MB;7465;7460;0;7470 /misc/test3=2217MB;7465;7460;0;7470 /misc/test4=2217MB;7465;7460;0;7470
[root@localhost misc]# umount test4
[root@localhost misc]# /usr/local/nagios/libexec/check_disk -w 5 -c 10
DISK OK - free space: / 15824 MB (87% inode=99%); /dev 481 MB (100% inode=99%); /dev/shm 489 MB (100% inode=99%); /run 440 MB (89% inode=99%); /sys/fs/cgroup 489 MB (100% inode=99%); /boot 148 MB (50% inode=99%); /run/user/0 97 MB (100% inode=99%); /run/user/1001 97 MB (100% inode=99%); /misc/test2 4867 MB (68% inode=84%); /misc/test3 4867 MB (68% inode=84%);| /=2296MB;18116;18111;0;18121 /dev=0MB;476;471;0;481 /dev/shm=0MB;484;479;0;489 /run=49MB;484;479;0;489 /sys/fs/cgroup=0MB;484;479;0;489 /boot=148MB;291;286;0;296 /run/user/0=0MB;92;87;0;97 /run/user/1001=0MB;92;87;0;97 /misc/test2=2217MB;7465;7460;0;7470 /misc/test3=2217MB;7465;7460;0;7470
[root@localhost misc]# /usr/local/nagios/libexec/check_disk -w 5 -c 10 -l
DISK OK - free space: / 15824 MB (87% inode=99%); /dev 481 MB (100% inode=99%); /dev/shm 489 MB (100% inode=99%); /run 440 MB (89% inode=99%); /sys/fs/cgroup 489 MB (100% inode=99%); /boot 148 MB (50% inode=99%); /run/user/0 97 MB (100% inode=99%); /run/user/1001 97 MB (100% inode=99%);| /=2296MB;18116;18111;0;18121 /dev=0MB;476;471;0;481 /dev/shm=0MB;484;479;0;489 /run=49MB;484;479;0;489 /sys/fs/cgroup=0MB;484;479;0;489 /boot=148MB;291;286;0;296 /run/user/0=0MB;92;87;0;97 /run/user/1001=0MB;92;87;0;97
[root@localhost misc]# findmnt | grep test
│ ├─/misc/test2 192.168.x.x:/mnt/test2 nfs4 rw,relatime,vers=4.0,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.x.x,local_lock=none,addr=192.168.x.x
│ └─/misc/test3 192.168.x.x:/mnt/test3 nfs4 rw,relatime,vers=4.0,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.x.x,local_lock=none,addr=192.168.x.x
Everything works properly for me in CentOS7 as well. I hope the above helps you glean useful information about some differences in our setups that may impact the problem. Let me know, thank you!