Skip to content

Nagios Plugin check_ifmountfs

Davide Madrisan edited this page Dec 18, 2016 · 2 revisions

check_ifmountfs - check whether the given filesystems are mounted

[/etc/nrpe.d/check_ifmountfs]
command[check_ifmountfs]=/usr/lib/nagios/plugins/check_ifmountfs / /boot/efi /home /var
Usage note
This plugin checks whether the given filesystems are mounted.
Copyright (C) 2013-2014 Davide Madrisan <[email protected]>

Usage:
  check_ifmountfs [FILESYSTEM]...

Options:
  -h, --help      display this help and exit
  -V, --version   output version information and exit

Examples:
  check_ifmountfs /mnt/nfs-data /mnt/cdrom
Example of output
> /usr/lib/nagios/plugins/check_ifmountfs / /boot/efi /home /var
filesystems OK

> /usr/lib/nagios/plugins/check_ifmountfs /nosuchfilesystem 
filesystems CRITICAL /nosuchfilesystem unmounted!
Performance data

none