aboutsummaryrefslogtreecommitdiffstats
path: root/clients/snmpfetch.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-04-02 19:24:45 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-04-02 19:24:45 +0200
commit0d8bba263dc195147d6fdb09662e7926f0a58b3e (patch)
tree4c570b4376c323e585120e7695b8715be7aa8881 /clients/snmpfetch.pl
parente4354b47bd8891c5b1ee591fdf74b3ca67eee461 (diff)
Bump lots of changes
Diffstat (limited to 'clients/snmpfetch.pl')
-rwxr-xr-xclients/snmpfetch.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/clients/snmpfetch.pl b/clients/snmpfetch.pl
index ed332a6..a13ef3f 100755
--- a/clients/snmpfetch.pl
+++ b/clients/snmpfetch.pl
@@ -217,21 +217,22 @@ sub callback {
my $ok = 1;
if (!defined($in) || $in !~ /^\d+$/) {
if (defined($ine)) {
- warn $switch->{'sysname'}.":$port: failed reading in";
+ warn $switch->{'sysname'}.":$port: failed reading in ($ine)" . (defined($in) ? ": $in" : "");
}
$ok = 0;
}
if (!defined($out) || $out !~ /^\d+$/) {
if (defined($oute)) {
- warn $switch->{'sysname'}.":$port: failed reading in";
+ warn $switch->{'sysname'}.":$port: failed reading out ($oute)" . (defined($out) ? ": $out" : "");
}
$ok = 0;
}
if (!defined($ifdescr)) {
+ warn $switch->{'sysname'}.":$port: failed reading ifdescr";
$ok = 0;
} elsif ($ifdescr =~ m/\./) {
# Skip virtual ports
- $ok =0;
+ $ok = 0;
}
if ($ok) {