An adage for gmirror users

Chris Cowart ccowart at rescomp.berkeley.edu
Wed Jun 3 21:33:05 UTC 2009


Reid Linnemann wrote:
> Written by Wojciech Puchar on 06/03/09 15:58>>
> > i simply have in crontab a script running once per hour:
> > 
> > #!/bin/sh
> > /sbin/gmirror status|grep -q DEGRADED && \\
> > mail -s "gmirror failure" myphonenumber at mygsmoperator.pl </dev/null
> 
> Surely you jest! You presume that I have access to cheap, unrestrictive
> communications technology ;) In the US, ISPs prevent clients routing
> their own mail and text messages are outrageously expensive with our
> cell carriers! Seriously though, that's a good idea. Maybe I could have
> it wall the message and/or put it in /etc/motd to get my attention.

Or simply put daily_status_gmirror_enable="YES" in /etc/periodic.conf
and watch your dailies.

-- 
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090603/f83c7c7e/attachment.pgp


More information about the freebsd-questions mailing list