Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

toni_comerma

Reviews(1)
bytoni_comerma, December 27, 2013
0 of 1 people found this review helpful
Good check, but the script has problems checking zpools with solaris 11, as a new column has been added: DEDUP.

I've made a change into get_zpool_data() and it worked.

next if (/^NAME\s+SIZE\s+USED\s+AVAIL\s+CAP\s+DEDUP\s+HEALTH\s+ALTROOT/);
my ( $pool, $size, $used, $avail, $cap, $dedup, $health, $altroot ) = split( /\s+/, $_ );

#@{$pools{$pool}} = ($pool, $size, $used, $avail, $cap, $health, $altroot);
$zpools{$pool} = {
size => "$size",
used => "$used",
avail => "$avail",
cap => "$cap",
dedup => "$dedup",
health => "$health",
altroot => "$altroot",
};

I expect it could be useful for others.