<div dir="rtl"><div dir="ltr">Hi.<br><br>This is an interesting topic indeed.<br><br>I&#39;m planning to have each server ping it&#39;s AFR pair, and if one of them goes down, the moment it comes up, to run ls -lR on the mount.<br>
<br>Perhaps others can share additional ideas?<br><br>Regards.<br></div><div><br><div class="gmail_quote"><div dir="ltr">2009/4/2 Cory Meyer <span dir="ltr">&lt;<a href="mailto:cory.meyer@gmail.com">cory.meyer@gmail.com</a>&gt;</span></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Has anyone found a decent way out there to monitor GlusterFS volumes?  <br>I&#39;m currently using Nagios and Cacti to take care of basic CPU, Load, Memory, and raw Disk I/O.   I need to monitor GlusterFS status and making sure all volumes are available..  
<br><br>My test environment is 6 servers with 6 AFR volumes which are each shared between those 2 servers.  All volumes are mounted on each server.<br><br>The checks I&#39;m testing out so far include a simple Bash script that writes the current Unix timestamp and hostname to a file once a minute. This is done by each server on only the volumes that they store.   <br>

   echo &quot;$(uname -n):$(date +%s)&quot; &gt; /mnt/gluster01/CHECK_FILE<br><br>The Nagios NRPE daemon would then execute a Perl script on each of the clients.   This script goes thorugh each of the Gluster mount points comparing the timestamps in the CHECK_FILE to the current system time alarming if the timestamp is off by more than a minute.  Another test which hasn&#39;t been implimented was checking the contents of the CHECK_FILE  with the data that is on the raw disk.<br>

<br>Bash code to write timestamps and executed via cron once a minute.  (write_timestamps.sh)<br><a href="http://glusterfs.pastebin.com/m5a220a6" target="_blank">http://glusterfs.pastebin.com/m5a220a6</a><br><br>Perl code to compare the timestamps which is executed on the client. (check_glusterfs_mounts.pl) <br>

<a href="http://glusterfs.pastebin.com/m2f057a77" target="_blank">http://glusterfs.pastebin.com/m2f057a77</a><br><br>Any ideas/questions/comments?   <br><br><br>
</div><br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br></div></div>