check_iftraffic64.pl inconsistent data
Posted: Mon Sep 16, 2019 6:06 am
hello to all,
my environment:
Nagios Core 4.4.3 on CentOS 7
Pluging check_iftraffic64.pl ver. 77
object to monitor a switch HP5130
when I test the pluging I receive inconsistent data in 64 bit and 32 bit
I.E.
# ./check_iftraffic64.pl -C snmpstring -H 10.10.60.101 -i Ten-GigabitEthernet1/0/49 -d 4
DEBUG ENABLED at level: 4
INTERFACE DESCR: Ten-GigabitEthernet1/0/49
BYTE COUNTER max_value: 1.84467440737096e+19
[...]
RESULTS:
Operational Status: 1
Interface Speed (64bit): 1000 Mbits
Interface Speed (32bit): 1000000000 bits
In Bytes (64bit): 79593553925206 <----- why this difference compared to the 32 bits value?
In Bytes (32bit): 3514963030 <----------- why this difference compared to the 64 bits value?
Out Bytes (64bit): 4060085470804 <---- why this difference compared to the 32 bits value?
Out Bytes (32bit): 1341376084 <-------- why this difference compared to the 64 bits value?
[...]
Can someone teach me how to fix this issue?
Best regards
Dario
my environment:
Nagios Core 4.4.3 on CentOS 7
Pluging check_iftraffic64.pl ver. 77
object to monitor a switch HP5130
when I test the pluging I receive inconsistent data in 64 bit and 32 bit
I.E.
# ./check_iftraffic64.pl -C snmpstring -H 10.10.60.101 -i Ten-GigabitEthernet1/0/49 -d 4
DEBUG ENABLED at level: 4
INTERFACE DESCR: Ten-GigabitEthernet1/0/49
BYTE COUNTER max_value: 1.84467440737096e+19
[...]
RESULTS:
Operational Status: 1
Interface Speed (64bit): 1000 Mbits
Interface Speed (32bit): 1000000000 bits
In Bytes (64bit): 79593553925206 <----- why this difference compared to the 32 bits value?
In Bytes (32bit): 3514963030 <----------- why this difference compared to the 64 bits value?
Out Bytes (64bit): 4060085470804 <---- why this difference compared to the 32 bits value?
Out Bytes (32bit): 1341376084 <-------- why this difference compared to the 64 bits value?
[...]
Can someone teach me how to fix this issue?
Best regards
Dario