Iftraffic

I’m trying to figure out how iftraffic works. As I understand it, when working it should show me network load data for computers that are running the check. I just started a position where it is running on several computers but the Nagios output is:

**ePN /usr/lib/nagios/plugins/check_iftraffic.pl: “Use of uninitialized value in scalar chomp at (eval 10) line 186, line 1.”.

here is the chunk of code from the services.cfg:

define service {
hostgroup_name linux-servers
service_description INTERFACE_1_LOAD
# arg1=which device, arg2=max speed of that device, arg3=units (g=Gbit, m=Mbit, k=kbit, b=bit)
check_command check_snmp_if_traffic_v1!eth0!100!m
max_check_attempts 1
normal_check_interval 5
retry_check_interval 5
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options c,r
contact_groups localadmins
}

I’m not sure what other data could be useful. If there is any let me know and I’ll put it up.

Thanks for any help.
Michael

I think I found the solution. It looks like changing the “chomp();” on line 185 to “chomp($row);” gets things working. Of course now another computer has a different problem. But that could use some research first.

Thanks