There are several plugins for this this already on nagios exchange. I would 
take a look there as well.

Some of them are:

http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=639

Python plugin to check the status of a software based RAID device. patched 
version, So it will work on both older (fedora core 1, 2) and newer (fc3, fc4, 
fc5, centos 4) hosts. (patch from rouilj, 03.02.2006) test ok on Debian woody,

and

http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=880

Linux Software Raid Plugin for 32-bit and 64-bit systems


________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Eric F Crist [EMAIL 
PROTECTED]
Sent: Wednesday, December 19, 2007 9:12 AM
To: Miah, W (Wadud)
Cc: [email protected]
Subject: Re: [Nagios-users] Linux Software Raid Plugin Recommendation?

On Dec 19, 2007, at 8:02 AM, Miah, W (Wadud) wrote:

> We use SNMP to monitor hardware RAID arrays (of course, they must be
> IP
> based). If you're using certain 3ware controllers, you can also use
> smartd to monitor the member devices (see man smartctl). Or, if you're
> using mdadm (software RAID), set the following line in /etc/mdadm.conf
>
> PROGRAM /usr/local/nagios/libexec/eventhandlers/md_monitor
>
> which alerts Nagios that your RAID array is degraded (see man mdadm).
> The above service will have to be configured as a passive check (can
> be
> set up to be a passive/active check using freshness_threshold and
> check_freshness). What kind of RAID do you want to monitor? e.g.
> software or hardware?
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Brian
> A. Seklecki
> Sent: 17 December 2007 15:39
> To: Jake Solid
> Cc: [email protected]
> Subject: Re: [Nagios-users] Linux Software Raid Plugin Recommendation?
>
>
> On Mon, 2007-12-17 at 10:35 -0500, Jake Solid wrote:
>> need to use a plugin that will check the status of the raid. Anyone
>
> RAID? LVM2, Soft-Raid, or Hardware?

Anything that has a command line utility that gives you text output
displaying the status of your array can be scripted to create your own
plug in.  You just may need to know a little sh/perl/python to get it
done.

What utility do you use to check the status of your array now?  Can
you give me some sample output?  Perhaps I have the time to script
something for you today.

-----
Eric F Crist
Secure Computing Networks



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to