We are using Nagios to monitor our desktop machines running Ubuntu 11.10. However, the check_disk compains DISK CRITICAL – /home/usr/.gvfs is not accessible Permission denied .
Also our servers are complaining because we had a tmpfs and udev mounted as read-only with 0% free space.
Then I found from this page fix for the problem. You need to add the following flags to your check_disk command:
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ -X fuse.gvfs-fuse-daemon
and it works like a charm again!
Another approach found from this blog is to add
-A -i .gvfs
but then you can’t anymore use -X flag, and generally I find the -X file system type list better. You find out the file system types by command
root@server:/etc/nrpe# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/md3 ext3 987992 715116 223084 77% /
varrun tmpfs 208920 360 208560 1% /var/run
varlock tmpfs 208920 0 208920 0% /var/lock
procbususb usbfs 208920 272 208648 1% /proc/bus/usb
udev tmpfs 208920 272 208648 1% /dev
devshm tmpfs 208920 0 208920 0% /dev/shm
/dev/sdh1 ext3 3968468 143312 3625152 4% /boot
/dev/sdh3 ext3 7937056 148800 7388240 2% /tmp
/dev/sdi7 ext3 7588436 1719252 5486740 24% /usr
/dev/sdh5 ext3 14535584 1414540 12388484 11% /var
/dev/mapper/h ext3 284237628 64132532 217240152 23% /home
/dev/mapper/b ext3 1453591612 1152203976 286736288 81% /mnt/backup1
/dev/mapper/a ext3 1453591612 958723680 480216584 67% /mnt/backup2
backup@backup.:/mnt/backup1/incoming fuse.sshfs 1048576000 0 1048576000 0% /mnt/backup
By combining the non-wanted file system types from all the machines we have, I also added to the ignore list the following:
-X tmpfs -X udev -X usbfs -X fuse.sshfs -X fuse.gvfs-fuse-daemon