On Fri, May 7, 2010 at 3:13 AM, Kelvin Westlake <Kelvin at netbasic.co.uk>
wrote:> Can anybody recommend away of monitoring gluster availability, I need to
> be made aware of a server or client crashes out. Is there some port or
> system component that can be monitored?
I use monit [ttp://mmonit.com/monit/] extensively, and have written a
simple config snippet to watch glusterfds and restart it if it has
failed.
from /etc/monit/monitrc
check process glusterfsd with pidfile /var/run/glusterfsd.pid
start program = "/etc/init.d/glusterfsd start"
stop program = "/etc/init.d/glusterfsd stop"
if failed host 127.0.0.1 port 6996 then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
if 5 restarts within 5 cycles then timeout
Today I was looking for a more 'gluster native' way of checking all
the nodes to see if each of them in the cluster are up, but haven't
gotten very far, save for pulling the hostnames out of the volfile:
grep "option remote-host" /etc/glusterfs/glusterfs.vol | uniq | cut
-d" " -f7
but from there you'd need to do a shared ssh key setup for a script to
loop through those entries and check things in the logs on all the
servers...
Does anyone have a way they do it?
P
On Fri, May 7, 2010 at 3:13 AM, Kelvin Westlake <Kelvin at netbasic.co.uk>
wrote:> Hi Guys
>
>
>
> Can anybody recommend away of monitoring gluster availability, I need to
> be made aware of a server or client crashes out. Is there some port or
> system component that can be monitored?
>
>
>
> Cheers
>
> Kelvin
>
>
>
>
> This email with any attachments is for the exclusive and confidential use
of the addressee(s) and may contain legally privileged information. Any other
distribution, use or reproduction without the senders prior consent is
unauthorised and strictly prohibited. If you receive this message in error
please notify the sender by email and delete the message from your computer.
>
> Netbasic Limited registered office and business address is 9 Funtley Court,
Funtley Hill, Fareham, Hampshire PO16 7UY. Company No. 04906681. Netbasic
Limited is authorised and regulated by the Financial Services Authority in
respect of regulated activities. Please note that many of our activities do not
require FSA regulation.
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>
>
--
http://philcryer.com