Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
toni_comerma
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.
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.