Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Monitor Aliased network interface bandwitch CentOS

Posted on 2016-09-10
4
97 Views
Last Modified: 2016-09-20
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
Comment
Question by:David Sankovsky
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 41793058
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
 
LVL 7

Author Comment

by:David Sankovsky
ID: 41799768
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
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 41799813
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
 
LVL 7

Author Closing Comment

by:David Sankovsky
ID: 41808132
snmp and PRTG did it! Thanks a lot mate!
1

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question