Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_e2fs_next_fsck
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!
filesystems with dumpe2fs/tune2fs. It checks the
mount count againts the max and also the
next scheduled check.
It gives WARNING in case there is 7 or less
days to next check of if mount counter is
nearing the max.
It gives ERROR if mountcount=Max or if next
check is in the past. Both errors mean that
the next reboot will start fsck.
# /etc/nagios/scripts/check_e2fs_next_fsck
OK, filesystems /dev/mapper/vg_ulmo-lv_root /dev/vda1 are fsck safe
--------------------------------------
# /etc/nagios/scripts/check_e2fs_next_fsck
ERROR: server12: /dev/mapper/es-es next fsck check time is in the past ( Fri Apr 24 11:43:49 2015), next restart causes FSCK !! ;
/dev/mapper/es-es next fsck check time is in the past ( Fri Apr 24 11:43:49 2015), next restart causes FSCK !!
OK, filesystems /dev/mapper/vg_ulmo-lv_root /dev/vda1 are fsck safe
--------------------------------------
# /etc/nagios/scripts/check_e2fs_next_fsck
ERROR: server12: /dev/mapper/es-es next fsck check time is in the past ( Fri Apr 24 11:43:49 2015), next restart causes FSCK !! ;
/dev/mapper/es-es next fsck check time is in the past ( Fri Apr 24 11:43:49 2015), next restart causes FSCK !!
Reviews (0)
Be the first to review this listing!