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

HansMeiser

Reviews(1)
check_iftraffic64
Hello,

have a problem here with this script and snmpd service 5.7.3 on Ubuntu18.04
We ask for traffic on remote host on eth0 by:
check_iftraffic64.pl -H 10.100.4.193 -i eth0
Result is:CRITICAL: Could not match eth0

Reason is line "my $resp=$response->{$key};" in sub fetch_ifdescr
On a working machine $resp contains lo, eth0, eth1
On invalid machine with new snmpd this contains also interface/controllerinformation, so script does not find the eth0 match.
###
my $resp=$response->{$key};
$resp =~ s/x00//;
print "resp: $resp
";
###
This is response from snmpd on Ubuntu18.04
resp: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
resp: Intel Corporation 82574L Gigabit Network Connection
resp: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
resp: Intel Corporation 82574L Gigabit Network Connection
resp: lo

So i have some assumptions:

- this Script losts some of values of response, unfortunately iam not a perl-programmer
- snmpd on machine is buggy
- snmpd on machine has wrong configuration. (We use minimized /etc/snmp/snmpd.conf with content "rocommunity public 10.100.4.206" successful on many systems)

What do you mean? Is there something know to this case?

Thanks,
Hans