Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_mdstat

Rating
2 votes
Favoured:
2
Current Version
1
Last Release Date
2013-10-01
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
Owner
License
GPL
Hits
34501
Files:
FileDescription
check_mdstat.shcheck_mdstat.sh
Nagios CSP

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!
linux shell script to check for failed software raid devices in /proc/mdstat

Usage: check_mdstat.sh mdadm_device total_drives

mdadm_device is md0, md1, etc...
total_drives is 2 for mirror, or 3, 4 etc...

Nagios script to check if failed drive in /proc/mdstat

Example: raid 2 (2 disk mirror)
/opt/nagios/libexec/check_mdstat.sh md0 2

Example: raid 5 with 8 disks
/opt/nagios/libexec/check_mdstat.sh md0 8
simple shell script, linux only, that integrates with nagios to send alert when a drive has failed in the sofware raid (/proc/mdstat).

Reviews (1)
bykabamaru, December 5, 2023
Thank you for the plugin. It works with nagios 4.