Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Checking that fstab mount points are mounted and that swaps are active.
Current Version
0.1
Last Release Date
2014-04-24
Owner
Jean-Jacques Puig
Website
http://ftp.espci.fr/pub/nagios-local/
Download URL
http://ftp.espci.fr/pub/nagios-local/check_mount-0.1.tcl
License
GPL
This script parses fstab for volumes that should be mounted on startup or swap devices that should be enabled on startup. It then compares with currently mounted filesystems and active swap devices.
It reports as CRITICAL: 1. All mount points which should be mounted and which are not, 2. All mount points which are mounted with a different device than the one mentionned in fstab 3. All swap devices which should be active and which are not.
(note that 2. is not compatible with using UUID= notation in fstab)
This script requires tcl; it works on Linux and NetBSD. It does not use /proc/mounts, which does not exist on NetBSD. Instead, it calls the 'mount' command with no argument.
All command line parameters are optional and should not usually be required:
Usage: ./check_mount-0.1.tcl [-f <fstab_file>] [-m <mount_check_cmd>] [-s <swap_check_cmd>]
-f: alternate path for fstab file (very useful for tests and debug) -m: alternate path and arguments for 'mount' command -s: alternate path and arguments for the swap command which allows for listing currently active swaps.
You must be logged in to submit a review.
To:
From: