Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-05-2004, 09:24 AM   #1
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
server monitoring

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
Old 05-05-2004, 09:47 AM   #2
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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 , if u find a sofware or a tool for real time net card usage, please let me know.
Old 05-05-2004, 09:56 AM   #3
Registered: Aug 2003
Location: The Netherlands
Distribution: SlackWare
Posts: 202

Rep: Reputation: 30
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)
Old 05-05-2004, 10:48 AM   #4
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
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.

Last edited by lucastic; 05-05-2004 at 10:49 AM.
Old 05-05-2004, 11:34 AM   #5
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
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.
Old 05-05-2004, 12:50 PM   #6
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
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.
Old 05-05-2004, 03:06 PM   #7
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
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.
Old 05-05-2004, 03:43 PM   #8
LQ Newbie
Registered: Jul 2003
Location: Canada
Distribution: Red Hat Linux 9.0 / Gentoo
Posts: 15

Rep: Reputation: 0
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 :

As for CPU usage top is nice.
Old 05-06-2004, 06:05 AM   #9
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
MRTG is configurable from command line

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 (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.
Old 05-06-2004, 07:28 AM   #10
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
mrtg is good for checking interface traffice "in" and "out" graphicall. Not very diffiuct to configre MRTG.

if you wana remote access your server use ssh or if you have window system then use "PuTTy" .
few command to check cpu usage "top" for memory "free"

Below is the link to configure mrtg on your server. Remember MRTG is only for monitoring traffice on your interfaces.
Old 05-06-2004, 11:04 AM   #11
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
gkrellm can be run locally on a non-x system and pipes its gui to another....I monitor my servers from my freebsd desktop that way.
Old 05-06-2004, 10:31 PM   #12
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Server Monitoring vaworx Linux - General 3 08-22-2005 08:27 AM
General Server Monitoring jonthelam Linux - Software 1 09-21-2004 01:03 PM
Monitoring an Apache server nkendrick Linux - Software 1 03-18-2004 07:27 PM
Server Monitoring Manuel-H Linux - General 1 04-19-2003 11:39 PM
monitoring proftp server adrianmak Linux - Networking 4 01-04-2003 09:46 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration