summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf2bcf6)
raw | patch | inline | side by side (parent: cf2bcf6)
author | Ton Voon <ton.voon@opsera.com> | |
Wed, 7 Jul 2010 08:56:21 +0000 (09:56 +0100) | ||
committer | Ton Voon <ton.voon@opsera.com> | |
Wed, 7 Jul 2010 08:56:21 +0000 (09:56 +0100) |
NEWS | patch | blob | history | |
THANKS.in | patch | blob | history | |
plugins-scripts/check_ifstatus.pl | patch | blob | history |
index 79ddc53527896de4a905f77ab955e1ef131839bc..dc2092dbe97d665b91e7291ce73298f3f004ce1e 100644 (file)
--- a/NEWS
+++ b/NEWS
Fix parsing of multi-line strings in check_snmp (broken in 1.4.14) and enhance output in such case (#2832451)
Fix detection of pst3 64-bit compile flags with Sun CC
Fix cmd_run overwriting the environment, which would break some commands that needed it
Fix parsing of multi-line strings in check_snmp (broken in 1.4.14) and enhance output in such case (#2832451)
Fix detection of pst3 64-bit compile flags with Sun CC
Fix cmd_run overwriting the environment, which would break some commands that needed it
+ Allow check_ifstatus to accept version=2c - used to only allow version=2 (Brian Landers)
WARNINGS
Updated developer documentation to say that performance labels should not have an equals sign or
single quote in the label
WARNINGS
Updated developer documentation to say that performance labels should not have an equals sign or
single quote in the label
diff --git a/THANKS.in b/THANKS.in
index 0b1dab6cb7365e017f7c708cefd0b091945671c7..6666de4fc7ea2496ef988a3c13ca2a4397a2b37c 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Dann Frazier
Stephane Chazelas
Craig Leres
Dann Frazier
Stephane Chazelas
Craig Leres
+Brian Landers
index 22638234155115df299d6ce133a6f4715ada4085..63c71ffae957f9c9f5411f4bb2a649788af83607 100755 (executable)
$status = GetOptions(
"V" => \$opt_V, "version" => \$opt_V,
"h" => \$opt_h, "help" => \$opt_h,
$status = GetOptions(
"V" => \$opt_V, "version" => \$opt_V,
"h" => \$opt_h, "help" => \$opt_h,
- "v=i" => \$snmp_version, "snmp_version=i" => \$snmp_version,
+ "v=s" => \$snmp_version, "snmp_version=s" => \$snmp_version,
"C=s" => \$community,"community=s" => \$community,
"L=s" => \$seclevel, "seclevel=s" => \$seclevel,
"a=s" => \$authproto, "authproto=s" => \$authproto,
"C=s" => \$community,"community=s" => \$community,
"L=s" => \$seclevel, "seclevel=s" => \$seclevel,
"a=s" => \$authproto, "authproto=s" => \$authproto,
$timeout = $TIMEOUT;
}
$timeout = $TIMEOUT;
}
- if ($snmp_version !~ /[123]/){
+ # Net::SNMP wants an integer
+ $snmp_version = 2 if $snmp_version eq "2c";
+
+ if ($snmp_version !~ /^[123]$/){
$state='UNKNOWN';
print ("$state: No support for SNMP v$snmp_version yet\n");
exit $ERRORS{$state};
$state='UNKNOWN';
print ("$state: No support for SNMP v$snmp_version yet\n");
exit $ERRORS{$state};