[Nagiosplug-devel] new Plugin CheckRaid
Bjoern Teipel
bt at diamos.de
Fri Mar 5 01:01:15 CET 2004
Hi Jag,
this looks fine to me, if your email client doesn`t break this line :-)
Did you run it with the nrpe and included into your nagios ?
What is the name of the counterpart plugin ?
I was looking into nagios-plugins-1.3.1 and i didn`t find it.
Björn
Jag wrote:
>On Thu, 2004-03-04 at 08:26, Björn Teipel wrote:
>
>
>>Hi all,
>>
>>I`ve written a tiny Perl script which checks the status of software
>>Raids under Linux using /proc/mdstat
>>It has been tested with RAID1 devices and worked fine, does someone has
>>RAID0,5 or other Raids and
>>can test this script ?
>>
>>
>
>Thanks for writing this. It looks promising. However, the status line
>is a bit spammy. Here's what it looks like on my system with three
>RAID1's and one RAID5:
>
>[sean at cstore1 sean]$ ./check_Raid.pl
>Loaded RAID drivers [raid1 raid5]<br>md0
>[active,raid1,sda1(UP),sdb1(UP)]<br>md1
>[active,raid1,sda3(UP),sdb3(UP)]<br>md3
>[active,raid1,sda4(UP),sdb4(UP)]<br>md2
>[active,raid5,sdc1(UP),sdd1(UP),sde1(UP),sdf1(UP),sdg1(UP),sdh1(UP),sdi1(UP),sdj1(UP)][sean at cstore1 sean]$
>
>(Everything after the command was on one line, although my mail client
>is wanting to break it up.)
>
>If you look in the contrib part of the nagios-plugins download, you'll
>see that there's another plugin to do something similar. However, its
>designed to only check on RAID device at a time, and it is somewhat
>broken. It doesn't have a break in its loop of reading through
>/proc/mdstat, so it ends up giving you info on the last device listed,
>even if that's not what you wanted.
>
>I think a combination of the two scripts would be nice. One thing I do
>like about the other one is it uses the "[UUUUUUUU]" straight out of
>/proc/mdstat. This gives a very good idea of that status of the raid in
>very little space.
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IBM Linux Tutorials
>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>GenToo technologies. Learn everything from fundamentals to system
>administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
>_______________________________________________
>Nagiosplug-devel mailing list
>Nagiosplug-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
>::: Please include plugins version (-v) and OS when reporting any issue.
>::: Messages without supporting info will risk being sent to /dev/null
>
>
--
Björn Teipel
Systemadministration
DIAMOS AG * Sulzbach/Taunus
Mail : bt at diamos.de
www : http://www.diamos.de
ca : http://www.diamos.de/CA
Phone: +49(0)6196/6506-151
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20040305/9325cb82/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3480 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://nagios-plugins.org/archive/devel/attachments/20040305/9325cb82/attachment.bin>
More information about the Devel
mailing list