Bug 221943

Summary: 404.status-zfs: Never mask a unhealthy ZFS pool
Product: Base System Reporter: Wout Decré <wout>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People Keywords: patch
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Proposed patch to fix 404.status-zfs none

Description Wout Decré 2017-08-30 16:46:05 UTC
Created attachment 185929 [details]
Proposed patch to fix 404.status-zfs

/etc/periodic/daily/404.status-zfs can detect unhealthy pools, but returns rc=1 when one is found.

This prevents sending the periodic output when you hide success and info messages:

daily_show_success="NO"
daily_show_info="NO"

Other disk status periodic scripts, such as 406.status-gmirror and 401.status-graid return rc=3 in this case, so the information is never masked in the periodic output.

See also bug #173614, comment #1
Comment 1 Wout Decré 2018-07-27 13:48:53 UTC
Anyone has input on this?