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

lkieffer

Reviews(1)
bylkieffer, March 6, 2014
1 of 1 people found this review helpful
check_emc_clariion.pl maintained by BuddhaBob74
Hello,

I have add the following code to process hotspare policy of VNX2:

# add for VNX2
my $policy_line = 0;
open (NAVICLIOUT ,"$NAVICLI_CMD -h $opt_host hotsparepolicy -list |");

while () {
# First lets check for errors before proceeding
check_for_errors($_);

# check for policy lines
if( $_ =~ m/^Policy ID:/) {
$policy_line=1;
}
if ($policy_line == 1) {
# check for hot spare lines
if( $_ =~ m/^Unused disks for hot spares:s+(.*)$/) {
$hotspare_count=$hotspare_count+$1
}
}
# end of section
if ( $_ =~ m/^s*$/) {
$policy_line=0;
}
}
close (NAVICLIOUT);