Checks Linux Software Raid. Works on both 32-bit and 64-bit systems

Edit Package monitoring-plugins-md_raid
https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_md_raid

Checks Linux Software Raid (also known as MD Raid). Works on both 32-bit and 64-bit systems

Checks Linux Software Raid (also known as MD Raid). Works on both 32-bit and 64-bit systems
Usage Run the plugin is as follows:
./check_md_raid
RAID OK: All arrays OK [1 array checked]

It requires the mdadm utility which is what you also used to create the raid
array. If it is not in the standard location of /sbin/mdadm then just do the
following
ln -s /path/to/mdadm /sbin/mdadm

and then run the plugin again.

This runs straight on both 32-bit and 64-bit systems and all modern linux
distros that have Python. This has been tested and all works nicely for me on
servers of both architectures and across distros. The plugin must be run as
root in order to test the state of all the arrays. Use sudo to grant the nagios
or nrpe user the rights to run it using sudo without a password like so:
visudo
add the following line:
nagios (ALL)=ALL NOPASSWD:/path/to/check_md_raid

Rewritten to work with python 2.3 as well (no longer uses subprocess for those
of you on debian...)

Support

If you have any issues, contact me at
hpsekhon(AT)googlemail.com

Refresh
Refresh
Source Files
Filename Size Changed
check_md_raid 0000006227 6.08 KB
check_md_raid-active.patch 0000000517 517 Bytes
check_md_raid-clean.patch 0000000543 543 Bytes
monitoring-plugins-md_raid-README.SUSE 0000001185 1.16 KB
monitoring-plugins-md_raid.changes 0000000990 990 Bytes
monitoring-plugins-md_raid.spec 0000003250 3.17 KB
Revision 2 (latest revision is 5)
Lars Vogdt's avatar Lars Vogdt (lrupp) committed (revision 2)
- Renamed package to monitoring-plugins-md_raid

- fix the previous commit by actually applying the patch 

- accept a trailing space for "clean" array state 

- correctly require mdadm

- copied from home:mcaj

- accept "active" as well as "active " for good state
Comments 0
openSUSE Build Service is sponsored by