[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Use clientchannel to determine status of /proc/mdstat on hobbit server?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Use clientchannel to determine status of /proc/mdstat on hobbit server?
- From: Charles Jones <jonescr (at) cisco.com>
- Date: Tue, 03 Apr 2007 11:50:01 -0700
- Authentication-results: sj-dkim-2; header.From=jonescr@cisco.com; dkim=pass ( sig from cisco.com/sjdkim2002 verified; );
- Dkim-signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1097; t=1175626203; x=1176490203; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=jonescr@cisco.com; z=From:=20Charles=20Jones=20<jonescr@cisco.com> |Subject:=20Re=3A=20[hobbit]=20Use=20clientchannel=20to=20determine=20sta tus=20of=20/proc/mdstat=0A=20on=20hobbit=20server? |Sender:=20; bh=Sh/HwjGKa5coadVTv/52UahXL/seutNO1TBfpA0Q0HE=; b=k/BcPLV3Ew8yj0rsaf+eIRemwqNRD5UIuPiKSXjnmtl99+BarfN4sgf8reITHVKwVXIrK0Z+ sQNlvfEKO/k+548kYrZ9GIb9StxBEjs/0u9/10EqgmahEZi1fI3UQLIR;
- Organization: Cisco Systems
- References: <002f01c77603$64f92ee0$07cc4a91@staff.han.nl>
- User-agent: Thunderbird 1.5.0.9 (X11/20070212)
A someone kludgey way to do it could be to monitor /proc/mdstat just as
if were a normal file, and setup Hobbit to monitor it just like you
would /var/log/messages, triggering on a pattern matched error string.
This would allow you to have it setup server-side like you want.
Not the best solution, I know, but it popped into my head :) You could
also configure mdadm on the client machines to send an email where there
are RAID issues.
-Charles
Dennis Ortsen wrote:
Hi All,
I've got a shell script that checks the status of the Linux md devices (cat
/proc/mdstat). It is currently intended to be run on the client itself (drop
it in $BBHOME/ext and add some config to $BBHOME/etc/clientlaunch.cfg). It's
a script from the RAID category on www.deadcat.net. Is it possible to have
the script installed only on the hobbit server and use the clientchannel to
retrieve the contents of /proc/mdstat and let the hobbit server do the test?
A new column (raid i.e.) would be preferable. A rule in
$BBHOME/etc/hobbit-clients.cfg would be very nice.