LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-05-2004, 09:24 AM   #1
wedgeworth
Member
 
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
maxut
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 freshmeat.net , 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
EyesOnly
Member
 
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)
http://www.ntop.org/ntop.html
 
Old 05-05-2004, 10:48 AM   #4
lucastic
Member
 
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
wedgeworth
Member
 
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
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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
wedgeworth
Member
 
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
queezythegreat
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 : http://iptraf.seul.org/

As for CPU usage top is nice.
 
Old 05-06-2004, 06:05 AM   #9
lucastic
Member
 
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 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.
 
Old 05-06-2004, 07:28 AM   #10
mardanian
Member
 
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.

http://people.ee.ethz.ch/~oetiker/we...nix-guide.html
 
Old 05-06-2004, 11:04 AM   #11
cyph3r7
Member
 
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
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
iftop
 
  


Reply


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


All times are GMT -5. The time now is 09:27 AM.

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