<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jag,<br>
<br>
this looks fine to me, if your email client doesn`t break this line :-)<br>
Did you run it with the nrpe and included into your nagios ?<br>
<br>
What is the name of the counterpart plugin ?<br>
I was looking into nagios-plugins-1.3.1 and i didn`t find it.<br>
<br>
Björn<br>
<br>
Jag wrote:
<blockquote cite="mid1078411651.4354.69.camel@pel" type="cite">
<pre wrap="">On Thu, 2004-03-04 at 08:26, Björn Teipel wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 ?
</pre>
</blockquote>
<pre wrap=""><!---->
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@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@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
<a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-devel@lists.sourceforge.net">Nagiosplug-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel">https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Björn Teipel
Systemadministration
DIAMOS AG * Sulzbach/Taunus
Mail : <a class="moz-txt-link-abbreviated" href="mailto:bt@diamos.de">bt@diamos.de</a>
www : <a class="moz-txt-link-freetext" href="http://www.diamos.de">http://www.diamos.de</a>
ca : <a class="moz-txt-link-freetext" href="http://www.diamos.de/CA">http://www.diamos.de/CA</a>
Phone: +49(0)6196/6506-151
</pre>
</body>
</html>