AW: Monitoring RAID through Nagios
Sean Dilda
agrajag at dragaera.net
Mon Sep 20 18:33:28 CEST 2004
On Mon, 2004-09-20 at 11:39, Helmut W. Januschka wrote:
> 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
Check out my check_swraid at http://www.duke.edu/~sean/nagios/ It's a
little bit more informative about what broke.
-------------------------------------------------------
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