sown / tasks

Tasks for sown projects
0 stars 0 forks source link

Add monitoring on ZFS pools #51

Closed TimStallard closed 2 years ago

TimStallard commented 4 years ago

Now that we're rebuilding backup servers on ZFS, we should monitor these pools, checking both pool health and free space.

Should be easy enough, we just need to check the following, and can work fine unprivileged via NRPE:

tim@backup3:~$ zpool get health data -H -o value
ONLINE
tim@backup3:~$ zpool get capacity data -H -o value
1%

zed is also set up (on backup3 at least) and should email in the case of errors from scrubs, emails don't seem to be getting relayed properly so far though.

TimStallard commented 2 years ago

backup3 ran out of space today, so we should get round to doing this

I think @drn05r is looking at adding checks, otherwise probably one to do at the next workshop day

drn05r commented 2 years ago

I have added ZPOOL-HEALTH and ZPOOL-USAGE checks to both backup servers on both sown-monitor.ecs and monitor2.sown.