max / mountaineer
| 1 | #!/bin/sh |
| 2 | # yambar `zfs` segment feed: ZFS pool health summary from sysop. |
| 3 | # |
| 4 | # Emits one yambar record on each poll: |
| 5 | # state|string|ok (all pools ONLINE) |
| 6 | # state|string|degraded (any pool non-ONLINE) |
| 7 | # |
| 8 | # Routes operator into `sysop storage` when state != ok. |
| 9 | |
| 10 | |
| 11 | |
| 12 | while ; do |
| 13 | summary="" |
| 14 | case "" in |
| 15 | ok) ;; |
| 16 | *) ;; |
| 17 | esac |
| 18 | |
| 19 | done |
| 20 |