Hi Team,
I want Nagios to send alert if a filesystem or mount point is unmounted on a server.
Actually, few mount points gets unmounted after the server gets rebooted. At that time, Nagios should send alert saying the particular mount point is not present or it is unmounted.
Please suggest a plugin with example.
Also, I want to check this in Nagios XI and in Nagios Core as well.
So, I need a plugin which should be compatible in both, Nagios XI and Nagios Core.
Thanks in advance!!
Mount point
Re: Mount point
Most plugins should work in both as Nagios Core is used as the backend for Nagios XI.
In XI you can use Configure > Configuration Wizards > Mountpoint or:
You can grab it here (it's a different version than the one we use for our wizard):
https://exchange.nagios.org/directory/P ... 2E/details
In XI you can use Configure > Configuration Wizards > Mountpoint or:
Code: Select all
[root@xid ~]# /usr/local/nagios/libexec/check_mountpoints.sh -h
Usage: check_mountpoints.sh [-m FILE] $mountpoint [$mountpoint2 ...]
Usage: check_mountpoints.sh -h,--help
Options:
-m FILE Use this mtab instead (default: /proc/mounts)
-f FILE Use this fstab instead (default: /etc/fstab)
-N NUMBER FS Field number in fstab (default: 3)
-M NUMBER Mount Field number in fstab (default: 2)
-T SECONDS Responsetime at which an NFS is declared as staled (default: 3)
-L Allow softlinks to be accepted instead of mount points
-i Ignore fstab. Do not fail just because mount is not in fstab. (default: unset)
-a Autoselect mounts from fstab (default: unset)
-A Autoselect from fstab. Return OK if no mounts found. (default: unset)
-w Writetest. Touch file $mountpoint/.mount_test_from_$(hostname) (default: unset)
MOUNTPOINTS list of mountpoints to check. Ignored when -a is given
Check if nfs/cifs/davfs mountpoints are correctly implemented and mounted.
This plugin is NOT developped by the Nagios Plugin group.
Please do not e-mail them for support on this plugin, since
they won't know what you're talking about.
For contact info, read the plugin itself...https://exchange.nagios.org/directory/P ... 2E/details