Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ZFS Status Report Mailer
#!/bin/sh
# Copyright 2013 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# ZFS Status Report Mailer v1.2
mailx -t \
<<EOF
MIME-Version: 1.0
FROM:Fileserver <server@domain.tld>
TO:Administrator <admin@domain.tld>
SUBJECT:ZFS Status Report: `zpool status -x`
Content-Type: text/html
<html>
<body>
<pre>
`uname -a`
`host \`hostname\``
`zpool status`
`zpool list`
</pre>
</body>
</html>
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment