#!/usr/bin/perl -w
# nagios: -epn

# Copyright 2010-2013 by Ingo LANTSCHNER, Vienna, Austria

use strict;
use warnings;
use 5.008_008;  # perl 5.8.8 required


our $VERSION = '2.4.1-8';

# Debugging
use Data::Dumper;
our $DEBUG = 0; # reset by CheckNetApp->run() according to -v(vv)

# my Modules
use FindBin qw($Bin);
use lib "$Bin/netapp_monitoring/modules/Il";        # CheckNetApp.pm, ...
use CheckNetApp 2.1.0;     ## no critic (ProhibitVersionStrings)

my $netapp_monitoring = CheckNetApp->new(
    max_length_single_line => 340,      # single line for Nagios 2.x
    max_length_multi_line  => 4096,     # multi line for Nagios 3.x
    max_length_cmd         => 4096,     # command-line
    credentials_max_length => 256,      # for username/password
    decimal_precision_output   => 1,
    decimal_precision_perfdata => 0,
    timeout => 15,  #  seconds, default for --timeout|-t    

    # 'ONTAPI Version 1.7 supporting Data ONTAP 7.2.1 and above'
    ontapi_major_version   =>   1,
    ontapi_minor_version   =>   7,
    
    # Default for textwrapping, if $ENV{'COLUMNS'} not found
    screen_width => 78,
    
);

$netapp_monitoring->run(@ARGV);
