[ZBX-5241] AIX 5.3 : bad value in item.key net.if.total[en2,errors] compare to entstat Created: 2012 Jun 26  Updated: 2017 May 30  Resolved: 2012 Jul 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: agent, aix
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AIX 5.3 LPAR


Attachments: Microsoft Word compare net.if item key.xls    
Issue Links:
Duplicate

 Description   

Item key net.if.total[en2,errors] regarding the entstat command shows not the same results.



 Comments   
Comment by Alexey Pustovalov [ 2012 Jun 26 ]

#entstat -d ent2
-------------------------------------------------------------
ETHERNET STATISTICS (ent2) :
Device Type: EtherChannel

Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 105960013 Packets: 270680712
Bytes: 49579616904 Bytes: 23912365168
Interrupts: 0 Interrupts: 261756906
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0 Max Packets on S/W Transmit Queue: 68 S/W Transmit Queue Overflow: 0 Current S/W+H/W Transmit Queue Length: 1

Broadcast Packets: 2939767 Broadcast Packets: 164909812
Multicast Packets: 1 Multicast Packets: 448184
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 1

General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 1
Adapter Data Rate: 200
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
PrivateSegment LargeSend DataRateSet

=============================================================
=============================================================

Statistics for every adapter in the EtherChannel:
-------------------------------------------------

Number of adapters: 2
Active channel: backup adapter
Operating mode: Network interface backup mode

-------------------------------------------------------------

ETHERNET STATISTICS (ent0) :
Device Type: 2-Port 10/100/1000 Base-TX PCI-X Adapter

Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 7 Packets: 3883896
Bytes: 420 Bytes: 252114142
Interrupts: 0 Interrupts: 3880888
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0 Max Packets on S/W Transmit Queue: 2 S/W Transmit Queue Overflow: 0 Current S/W+H/W Transmit Queue Length: 0

Broadcast Packets: 6 Broadcast Packets: 3883886
Multicast Packets: 1 Multicast Packets: 10
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0

General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 1
Adapter Data Rate: 200
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
PrivateSegment LargeSend DataRateSet

2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) Specific Statistics:
------------------------------------------------------------------------
Link Status : Up
Media Speed Selected: 100 Mbps Full Duplex Media Speed Running: 100 Mbps Full Duplex PCI Mode: PCI-X (100-133) PCI Bus Width: 64-bit Latency Timer: 144 Cache Line Size: 128 Jumbo Frames: Disabled TCP Segmentation Offload: Enabled TCP Segmentation Offload Packets Transmitted: 0 TCP Segmentation Offload Packet Errors: 0 Transmit and Receive Flow Control Status: Disabled Transmit and Receive Flow Control Threshold (High): 49152 Transmit and Receive Flow Control Threshold (Low): 24576 Transmit and Receive Storage Allocation (TX/RX): 8/56

-------------------------------------------------------------
Backup adapter - ent1:
======================

ETHERNET STATISTICS (ent1) :
Device Type: 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 105960008 Packets: 266796816
Bytes: 49579616648 Bytes: 23660251026
Interrupts: 0 Interrupts: 257876018
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0 Max Packets on S/W Transmit Queue: 66 S/W Transmit Queue Overflow: 0 Current S/W+H/W Transmit Queue Length: 1

Broadcast Packets: 2939761 Broadcast Packets: 161025926
Multicast Packets: 0 Multicast Packets: 448174
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 1

General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 1
Adapter Data Rate: 200
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
PrivateSegment LargeSend DataRateSet

2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) Specific Statistics:
------------------------------------------------------------------------
Link Status : Up
Media Speed Selected: 100 Mbps Full Duplex Media Speed Running: 100 Mbps Full Duplex PCI Mode: PCI-X (100-133) PCI Bus Width: 64-bit Latency Timer: 144 Cache Line Size: 128 Jumbo Frames: Disabled TCP Segmentation Offload: Enabled TCP Segmentation Offload Packets Transmitted: 55022 TCP Segmentation Offload Packet Errors: 0 Transmit and Receive Flow Control Status: Disabled Transmit and Receive Flow Control Threshold (High): 49152 Transmit and Receive Flow Control Threshold (Low): 24576 Transmit and Receive Storage Allocation (TX/RX): 8/56

Zabbix agent results:
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.collisions[en2]
0
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.in[en2,bytes]
2727290909
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.in[en2,packets]
266650624
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.in[en2,errors]
0
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.out[en2,bytes]
2334778631
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.out[en2,packets]
105958874
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.out[en2,errors]
2
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.total[en2,bytes]
5062087808
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.total[en2,packets]
372609619
/opt/zabbix/bin/zabbix_get -s 127.0.0.1 -p 10050 -k net.if.total[en2,errors]
2

Also xls file contains the same formated information. Please use it.

Comment by dimir [ 2012 Jul 04 ]

We are using AIX perfstat API to get network interface statistics:

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.prftools/doc/prftools/prftools07.htm

Even using example programs from that document I get different results with what entstat is showing. entstat command manual:

http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds2%2Fentstat.htm

entstat has a switch to reset counters but I still can't find information on why perfstat data is different from what entstat or netstat -v show.

Comment by dimir [ 2012 Jul 05 ]

The question has been asked on IBM forum:

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=439697

Comment by dimir [ 2012 Jul 09 ]

It appeared that entstat views device driver statistics while perfstat API views network interface statistics. In order to view the same statistics zabbix agent returns compare them to what

netstat -D -I <device>

returns (e. g. netstat -D -I en2). These numbers should be identical, please check.

Comment by dimir [ 2012 Jul 10 ]

Closing. Feel free to re-open if you think the bug is still there.

Comment by dimir [ 2012 Jul 10 ]

Reopening to remove assignee.

Comment by dimir [ 2012 Jul 10 ]

Closing as "Won't Fix".

Generated at Fri Apr 19 16:09:55 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.