check_next_fsck

Bookmark and Share

Current Version
1
Last Release Date
2010-03-20
Compatible With
  • Nagios 3.x
Owner
E-mail
License
GPL
Hits
28100
Files:
FileDescription
check_next_fsckcheck_next_fsck
Check the date and mount count of the device passed by parameter. It's able to manage devices not configurated to be checked by fsck (values -1 and none in max mount count and date interval).
Check the date and mount count of the device passed by parameter. It's able to manage devices not configurated to be checked by fsck (values -1 and none in max mount count and date interval).

Needs sudo without passwd to run tune2fs

Usage: check_next_fsck -w DAYS,MOUNTS -c DAYS,MOUNTS -d DEVICE

In example:

/usr/lib/nagios/plugins/check_next_fsck -w 7,10 -c 4,5 -d /dev/sda1

Show warning 7 days or 10 mounts before /dev/sda1 needs a fsck or critical 4 days or 5 mounts.