Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_zpool_zfsonlinux
1.0
2016-02-28
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
BSD
5939
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
zpool status checker for zfs on linux
example:
# /usr/lib/nagios/plugins/check_zfs # one pool
OK storage-02(ONLINE 10.3T/87T),storage-03(ONLINE 75.6T/87T),storage-81(ONLINE 1.00T/87T)
# resilver example
WARNING storage-02(ONLINE 11.1T/87T),storage-03(RESILVER 18.53%,223M/s,82h51m),storage-81(ONLINE 1.00T/87T)
# /usr/lib/nagios/plugins/check_zfs # multiple storage pool
OK storage-03(ONLINE 118T/390T)
example:
# /usr/lib/nagios/plugins/check_zfs # one pool
OK storage-02(ONLINE 10.3T/87T),storage-03(ONLINE 75.6T/87T),storage-81(ONLINE 1.00T/87T)
# resilver example
WARNING storage-02(ONLINE 11.1T/87T),storage-03(RESILVER 18.53%,223M/s,82h51m),storage-81(ONLINE 1.00T/87T)
# /usr/lib/nagios/plugins/check_zfs # multiple storage pool
OK storage-03(ONLINE 118T/390T)
Reviews (1)
I believe there's an error. It always responds "CRITICAL", even when pool is online.
Possibly this should be N_OK instead of N_CRITICAL?
sub nagios_response()
{
my $msg = shift || "Unknown";
my $exit_status = shift || N_CRITICAL; [$exit_status], $msg);
exit($exit_status);
}
Possibly this should be N_OK instead of N_CRITICAL?
sub nagios_response()
{
my $msg = shift || "Unknown";
my $exit_status = shift || N_CRITICAL; [$exit_status], $msg);
exit($exit_status);
}
Owner's reply
fixed.