Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to monitor dedicated server bandwidth usage??
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to monitor dedicated server bandwidth usage??

I got dedi from online.net and I want to monitor my bandwidth usage. How can I do that??
I did search on google and didnt get useful answer.
I dont want complex program that hard to install.. simpler is better

Comments

  • vnstat

    Thanked by 1Vpscraze
  • @Darwin said:
    vnstat

    thanks :)

  • MassNodesMassNodes Member
    edited November 2013

    I learned a pretty cool track of just using iptables.

    Simply add a rule for the IP address (ie 192.168.0.117):
    iptables -A FORWARD -s 192.168.0.117
    iptables -A FORWARD -d 192.168.0.117
    
    To view the In/Out:
    iptables -nv -L FORWARD
    (add 'x' as arg if want in bytes)
    
    I wrote another little command to display it in terms of GB per IP:
    iptables -nvx -L FORWARD | awk '{print $2}' | tail -n +3 | awk '{s+=$1} END {print s/1024/1024/1024}'
  • Online.net also have a monitoring menu in the console area. But we can also install vnstat :

    # wget http://humdi.net/vnstat/vnstat-1.11.tar.gz
    # tar xf vnstat-1.11.tar.gz
    # cd vnstat*
    # make && make install
    # cp examples/vnstat.cron /etc/cron.d/vnstat
    # vnstat
    # vnstat -u -i interface
    

    Also install iftop to monitor the conenction

    Thanked by 2DalComp woochun
  • charliecharlie Member, Host Rep

    Munin?

  • drserverdrserver Member, Host Rep

    you have that integrated into online panel. Click on your server, then you have statistics, later you have daily, weekly and monthly bandwidth graphs with legend.

  • AlexanderMAlexanderM Member, Top Host, Host Rep

    Vnstat is nice.

  • Ifconfig (network adapter)
    Ex: ifconfig eth0

  • @Vpscraze said:
    Ifconfig (network adapter)

    That's the worst way to monitor your bandwidth :/

    The count is reset after a reboot, it doesn't show by hour/day/month/whatever, and it can't separate by IP/alias.

  • agentmishraagentmishra Member, Host Rep

    simply go for ifconfig
    the tx/rx shows the data usage...

  • yah.. online.net have the option.. But I just wanna try other way :) just for fun.. I tried vnstat with frontend.. I happy with it.. I will try other way mentioned later :)
    thanks

  • I use vnstat, vnstati is also a great tool to have. If you wanted to generate graphs =)

  • drserverdrserver Member, Host Rep

    observium looks nice

  • BrianHarrisonBrianHarrison Member, Patron Provider

    Are you more interested in live bandwidth usage or total monthly usage? If it's live bandwidth usage you're after, iftop is an excellent tool. We have it installed on all of our machines.

Sign In or Register to comment.