This week I compared several Nagios plugins to monitor zfs pools (see article Monitor zfs pools - which Nagios plugin should be used?). After having compared seven plugins found on exchange.nagios.org, I finally decided to continue with plugin number 3 (check_zpools), a bash/shell plugin.
Although the plugin already "did its job", I had to make some changes anyway to guarantee compatibility to both Solaris and FreeBSD systems. Besides that I completely revamped the plugin; I added help, options and thresholds for pool usage and changed the "design" of the plugin.
The modified plugin can be found on my github account:
I successfully tested it on the following operating systems (no modifications or additional installations are necessary):
- Solaris 10
- Open Solaris 11
- FreeBSD 8.3
I asked the author of the last version to merge my modifications, so I think the my adapted version will soon be available on Nagios Exchange.