TOP LEVEL CATEGORIES
EXPLORE
Description:
Check if all specified nfs/cifs/davfs mounts exist and if they are correct implemented. That means we check /etc/fstab, the mountpoints in the filesystem and if they are mounted. It is written for Linux and Solaris, uses proc-Filesystem and was tested on
Debian, OpenSuse 10.1 10.2 10.3 11.0, SLES 10.1 11.1 RHEL 5 6 7 8, CentOS 5 6 7 8 Solaris FreeBSD
# changes 2.6 # – check only dataset type filesystem on zfs # changes 2.5 # – add -E flag to exclude path # – add yas3fs # changes 2.4 # – add support for ext2 # changes 2.3 # – add support for btrfs … See script or github for full list of changes.
Current Version
2.6
Last Release Date
2021-11-26
Compatible With
Owner
Daniel Werdermann
Download URL
https://github.com/echocat/nagios-plugin-check_mountpoints
License
MPL
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
check_mountpoints.sh
The plugin is designed to be used with nrpe. So it has to be executed on the machine that is checked.
Yoo can achieve that with a little trick. Your rc.local file needs a little rewrite. The lines should look like that: mount -t nfs 1xx.26.xx.xx:/vol/e_oldlogs /geminilogs We need that "-t nfs" because the check can use the following parameters: -f /etc/rc.local (he takes that fiel as fstab now) -N 3 (the fieldnumber to search for FS type, thats why we needed the nfs) -M 5 (fieldnumber of the mountpoint) Or you can just use -i ,which ignores the fstab and just checks if the given paths are mountpoint according to mtab. Both ways should work for you. Regards
Yes, this seems to be the problem. If the nrpe users has no write permissions, the writetest will fail.
Hi ronator, you were right, so it has nothing to do with Ubuntu or Debian. There was a bug in Release 1.14, which always returns "true" when /proc/mounts was checked. The new version 1.15 should work for you now. If not contact me via mail or github. Regards
I added the path in version 1.12. Thanks
The problem is, that i never work with AIX at all. So I am not the perfect person to implement that. If you have a tested patch I would take it so. ;)
Version 1.7 has the new -A flag, which returns an OK if no mount were autoread from fstab. If you want an exclude list send me a patch ;) Time is short at the moment.
Version 1.6 adds the flag -a to the script, which means mountpoints are autoselected from fstab file. So use the new version like: check_mountpoints.sh -a
fixed in version 1.6
Hi, your were totaly right and version 1.2 should fix that problem. The "df -k", which hangs on staled NFS mountpoints is now killed after 3 seconds or whatever time you define with -T. Try the new version. Thanks for the reply.
Support for CIFS is implemented now. Should work fine.
Try the new Version. I fixed and added alot of thinks.
The new Version 1.1 fix that. Thanks for the hint.
The link is dead :(
The new Version 1.1 fix that. Just a little late ;-) Thanks for the hint.
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.