Mount point

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Mount point

Post by RIDS_I2MP »

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!!
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Mount point

Post by ssax »

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:

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...
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
Locked