Date: Tue, 8 May 2018 16:51:03 -0700 From: "Jack L." <xxjack12xx@gmail.com> To: Vincent Hoffman-Kazlauskas <vince@unsane.co.uk> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Notification for GMirror failures Message-ID: <CALeGphzp3JzGUZnPrghhkT84WwNUHof5U62q_qykTY%2Btc16x1g@mail.gmail.com> In-Reply-To: <060d7310-88e0-6c1c-ed94-37a524d3f60a@unsane.co.uk> References: <e792884d579cd1f2c8d05ff4002ad1a3@schema31.it> <060d7310-88e0-6c1c-ed94-37a524d3f60a@unsane.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
I use crontab @daily (/sbin/gmirror status | grep -q COMPLETE) || mail -s "gmirror failure" email addy On Tue, May 8, 2018 at 4:41 PM, Vincent Hoffman-Kazlauskas <vince@unsane.co.uk> wrote: > > > On 08/05/2018 08:28, Andrea Brancatelli wrote: >> Hi, >> >> out of curiosity, does any kind of GMirror-failure notification tools >> exist? >> >> Either native... SNMP... external ports... whatever? >> > If you use nagios (or compatible) net-mgmt/nagios-geom in ports works > > root@banshee # /usr/local/libexec/nagios/check_geom mirror gm0 > OK mirror/gm0 COMPLETE { ada0s1 (ACTIVE) , ada1s1 (ACTIVE) > }|geom_mirror=2;;;0; > ($00:41:05 </usr/local/etc/nrpe.d>$) 0 > > > Vince > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALeGphzp3JzGUZnPrghhkT84WwNUHof5U62q_qykTY%2Btc16x1g>