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 <vi...@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-unsubscr...@freebsd.org" _______________________________________________ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"