PDA

View Full Version : Linux Monitoring


dconderm
2003-07-28, 15:48 PM
Hello

I use an old Pentium 166 here with linux installed, basically just to SSH into my server. Once in I like to run the "top" command to keep an eye on the CPU and memory. Are there any other good commands to help monitor a server? I would love to see some real time stats on Apache and SQL. Also, I have "top" set to refresh every 10 seconds, am I going to end up with massive bandwidth usage if i leave it up full time?

--dan

datavortex
2003-07-28, 15:54 PM
Big Brother is my favorite. Of course any old SNMP app will do, as well:

http://bb4.com/

Tino Didriksen
2003-07-28, 17:17 PM
If you are on Windows at home, you can just use PuTTy for SSH (http://www.chiark.greenend.org.uk/~sgtatham/putty/).

And you can monitor your server vitals in a browser if you install tools such as phpSysInfo (http://phpsysinfo.sourceforge.net/).

dconderm
2003-07-28, 18:02 PM
I am looking for something that I can put in the server and run while I am logged into it with SSH.

My "Monitoring" computer is a old dog, and it really just like to run a simple Linux install (non X).

I know my request seems a little odd, non-color, non-html, non GUI. I just want a to monitor it in ASCII.

--dan

spoon
2003-07-28, 18:43 PM
Stuff I'd keep an eye on are:

free -m -- memory check
w -- loadavg and who's logged in from where
cat /proc/sys/fs/file-nr -- keep an eye on open files

I only use top when I'm trying to figure who/what is sucking up memory and CPU time... otherwise, loadavg is a decent indicator of when something's starting to go whacky.

dwhittington
2003-07-28, 20:59 PM
Take a look at Nagios as well.

www.nagios.org

demo site ...

nagios.square-box.com

user: guest
pwd : guest

neo
2003-07-29, 04:48 AM
wow, that nagios is nasty. check out that network map. It's so intuitive and well laid out. Looks similar to "the brain" from, well, "the brain technologies".

That's an awesome tool. I'ma have to do some investigative journalism on it ;)

Striker
2003-07-29, 12:04 PM
I currently use MRTG to watch pretty much _everything_

Here's a sample: :)

http://www.myhotsprings.com/mrtg/

If anyone is interested in the scripts used to track this information, just ask :)

dhigbee
2003-08-01, 00:05 AM
I'm interested. I have pretty much given up trying to get some of the functions down. Traffic I have good graphs. Having trouble with the memory and CPU usage. Seems like you got your scripts to work correctly.

Can you send through the forums email utility? If not, drop me a note and I will give you a direct email address.

Thanks,

Don

Striker
2003-08-01, 01:48 AM
I will be posting many useful scripts soon in the How To section in the next couple of days probably.

I'll also give ways to manipulate them and other things on your server for general useful stuff.

dhigbee
2003-08-01, 12:04 PM
Striker,

Thanks. I look forward to it.

Don