Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
need the best way to monitor in real time my servers
1) cpu usage
2) network card usage
we have a chat system running that ceilings at 1000 users. trying to monitor my servers to see if the problem is on the server side, or the apps side. any help? thnx
1 - "top" command can show some info about cpu usage.
2 - actually i dont know what tool can show real time network card usage. u may search softwares from freshmeat.net , if u find a sofware or a tool for real time net card usage, please let me know.
For network usage you could use ntop
There is a very complete webinterface whit more options and info than you can imagine, but there is also a small console-version, similair to top.
(thisone is called intop, by the way) http://www.ntop.org/ntop.html
MRTG seems to do the job. Not real time but updated every 5 minutes. I suppose you could set it to update every 2 mins but...
I have it set up to monitor (in graph form), server cpu usage, total free memory, real free memory, open TCP connections, local LAN usage through server/gateway and ADSL usage to internet. There are quite a few other things you can monitor like temp, all types of memory usage (total real and swap), etc.
It comes installed with Redhat apache install (I think...), you just have to set it up. You will need to install SNMP to use MRTG.
Only negative I found was the lack of help docs. but once set up it is worth it.
i've never used MRTG before. will it help me see if my network card is being maxed out, and that this is causing my ceiling in my apps preformance.
1) QUICK FIX: it would be nice if there was just a straight forward way to check in real time the % being used on my network card, so as i do my test runs i can see if a bottle neck is occuring on the network card. (is there a log somewhere i could check? can MRTG show me real time percentages and i just don't know it?)
2) LONG RUN: i also need a nice overall monitoring system, like the examples everybody is giving right now.....maybe MRTG is that system. it definitly looks interesting. any body else use it? what all do you monitor with it? is there a better system out there?
Last edited by wedgeworth; 05-05-2004 at 11:36 AM.
For realtime you would probably be better with GKrellM. It runs well and gives all the stats you want. I'm actually working on a Nagios plugin that interfaces with a GKrellM server to monitor tempertatures/fan speeds/activity etc.
note: guys who are offering examples of monitors you use. i run rh 7.3 and only command line. so i need something i can interact with using commandline...or something that will produce a web page i can check....or something where a client can run on my pc. thnx guys.
If you want to monitor network usage I recommend IPTraf. It gives you a detailed view of every connection on you system, it also give you nice statistical information like average speed, total packets sent/recieved, etc ...
IPTraf : http://iptraf.seul.org/
It will give you percentages for current, average and max Eth0 (or other) in kb or mb. It will give you the same specs (C,A & M) for CPU usage in percentage. It will also give you these results in graphs in for usage daily, weekly, monthly and yearly. The daily graph is averaged from data collected at 5 minute intervals (quite accurate enough I have found), the weekly graph is calculated from averages of 30 mins and so on....
It produces webpages in redhat that can be seen with a default setting at www.mydomain.com/mrtg/cpu_usage1.html (or whatever you set the page names to).
Do a google for MRTG you will see plenty of graphs that are publicly viewable on servers around the place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.