Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 126
  • Last Modified:

Monitor Aliased network interface bandwitch CentOS

Hi Experts,

We are building an automated HAProxy + NGINX environment to host high load web campaigns.
One of the requirements is obviously to know how much traffic each campaign used during the running time.

My question is this, Assuming I use "Virtual" or "Aliased" network interfaces i.e:

ens160
ens160:1
ens160:2

and so forth and so forth, Can I somehow gather TX and RC statistics for each one?
if I try to grep that info from the ifcfg interface, I only get the information for the actual interface, not the virtual ones.
0
David Sankovsky
Asked:
David Sankovsky
  • 2
  • 2
1 Solution
 
arnoldCommented:
Why look at network traffic, where summing data transferred from the web server/Proxy log will provide the differentiation you are looking for .
What you need to use is log crunchers that will reflect the amount of data transferred and if you need it in bndwidth,  some calculate/represent that...

The requests are of minimal size so your representation wou,d be outgoing bandwidth ......
0
 
David SankovskySenior SysAdminAuthor Commented:
ok, Even asuuming I can do it using the Apache Logs (Or NGINX LOgs in this case)
My quesiton still stands.
How can I look at the Tx and Rx values of Aliased Network interfaces.
0
 
arnoldCommented:
you can poll the switch/device using snmp and cacti, mrtg, etc. can display in a graphical format.
You have to see whether your device provides for SNMP listing of the virtualized interface.
The same would apply on the server itself
snmpwalk localhost and see whether the network interfaces are listed there, then you would have to identify the OID that are of interest to you for each......
1
 
David SankovskySenior SysAdminAuthor Commented:
snmp and PRTG did it! Thanks a lot mate!
1

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now