diff options
Diffstat (limited to 'monitor.sh')
-rwxr-xr-x | monitor.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor.sh b/monitor.sh new file mode 100755 index 0000000..16befe0 --- /dev/null +++ b/monitor.sh @@ -0,0 +1,8 @@ +#!/bin/bash +echo "=== Stygian Mirror Health ===" +echo -n "Load: " +uptime | awk -F'load average:' '{print $2}' +echo -n "Net throughput: " +vnstat -tr 5 | grep 'rx\|tx' +echo "ZFS I/O:" +zpool iostat -v 5 2 | tail -n +4 |