Notification for GMirror failures

Jack L. xxjack12xx at gmail.com
Tue May 8 23:51:47 UTC 2018


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


More information about the freebsd-stable mailing list