Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_mount.tcl
0.1
2014-04-24
GPL
22499
Meet The New Nagios Core Services Platform
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.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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] [-m ] [-s ]
-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.
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
-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.
Reviews (0)
Be the first to review this listing!