AW: Monitoring RAID through Nagios

Helmut W. Januschka h.januschka at krone.at
Mon Sep 20 17:39:26 CEST 2004


For Software RAID's i would do something like 
	a=`(cat /proc/mdstat |grep blocks|while read n; do echo $n|grep "_"; done)|wc -l`
	if [ $a gt 0 ]
	then
		echo "Some raid is broken watch at /proc/mdstat";
		exit $STATE_CRITICAL;
	else
		echo "All ok";
		exit $STATE_OK;
	fi;


dont know about hardware raid's -> maybe have a look at hardware vendor site


so long
Helmut
-----Ursprüngliche Nachricht-----
Von: Gerd Müller [mailto:gmueller at netways.de] 
Gesendet: Montag, 20. September 2004 17:09
An: Reddy, Praveen K
Cc: nagios-users at lists.sourceforge.net
Betreff: Re: [Nagios-users] Monitoring RAID through Nagios

which one?

/Gerd

Am Mo, den 20.09.2004 schrieb Reddy, Praveen K um 17:00:
> Is it possible to monitor RAID controllers/disks through Nagios? If
> yes, how can it be done?
> 
>  
> 
> Thanks in advance.
> 
> Praveen


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list