mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
git-svn-id: http://svn.centreon.com/Plugins/Dev@2458 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
c24590b654
commit
fc131783af
@ -89,9 +89,7 @@ if ($opt_n && !$opt_d) {
|
|||||||
exit $ERRORS{'UNKNOWN'};
|
exit $ERRORS{'UNKNOWN'};
|
||||||
}
|
}
|
||||||
my $snmp = "1";
|
my $snmp = "1";
|
||||||
if ($opt_v && $opt_v =~ /^[0-9]$/) {
|
$snmp = $opt_v if ($opt_v && $opt_v =~ /^[0-9]$/);
|
||||||
$snmp = $opt_v;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($snmp eq "3") {
|
if ($snmp eq "3") {
|
||||||
if (!$opt_u) {
|
if (!$opt_u) {
|
||||||
@ -107,22 +105,19 @@ exit $ERRORS{'OK'};
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$opt_C) {
|
$opt_C = "public" if (!$opt_C);
|
||||||
$opt_C = "public";
|
$opt_d = 2 if (!$opt_d);
|
||||||
}
|
|
||||||
if (!$opt_d) {
|
|
||||||
$opt_d = 2;
|
|
||||||
}
|
|
||||||
($opt_d) || ($opt_d = shift) || ($opt_d = 2);
|
($opt_d) || ($opt_d = shift) || ($opt_d = 2);
|
||||||
|
|
||||||
my $partition = 0;
|
my $partition = 0;
|
||||||
if ($opt_d =~ /([0-9]+)/ && !$opt_n){
|
if ($opt_d =~ /([0-9]+)/ && !$opt_n){
|
||||||
$partition = $1;
|
$partition = $1;
|
||||||
}
|
} elsif (!$opt_n){
|
||||||
elsif (!$opt_n){
|
|
||||||
print "Unknown -d number expected... or it doesn't exist, try another disk - number\n";
|
print "Unknown -d number expected... or it doesn't exist, try another disk - number\n";
|
||||||
exit $ERRORS{'UNKNOWN'};
|
exit $ERRORS{'UNKNOWN'};
|
||||||
}
|
}
|
||||||
|
|
||||||
my $critical = 95;
|
my $critical = 95;
|
||||||
if ($opt_c && $opt_c =~ /^[0-9]+$/) {
|
if ($opt_c && $opt_c =~ /^[0-9]+$/) {
|
||||||
$critical = $opt_c;
|
$critical = $opt_c;
|
Loading…
x
Reference in New Issue
Block a user