Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-15-2010, 09:54 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
monitoring a linux box

Hey all

I wanted to know the best way to monitor memory usage, us space and processes and receive an email if a problem occurs?

Thanks in advance

Old 07-15-2010, 10:14 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

There's no "best way", there's a lot of choices. The selection of which
will depend on your use-case. One machine, many? Monitoring intervals?
Flexibility? Extensibility? Types of alerts? Will mail suffice if the
process sending the mail dies because of memory exhaustion?

If you want a targeted response, provide more detailed input, please.

Old 07-15-2010, 10:16 PM   #3
LQ Newbie
Registered: Dec 2009
Location: Adelaide, Australia
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
The command free will give you memory info, the command df will give you used space info and ps or top will give you info about processes.
You could make a shell script to parse the output of these commands, to search for situations which you don't like (like running out of memory), and get it to email you if something goes wrong. You then make the shell script a cron event, so that it runs every hour or something.


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
create small linux box for environment monitoring? vbsaltydog Linux - Hardware 7 03-15-2009 11:36 AM
Monitoring SSH usage on my box bucovaina78 Linux - Security 12 11-18-2008 01:01 AM
Accessing WevDav directory on linux box A from linux box B using Ant script. panayoti Linux - Newbie 0 10-07-2006 11:44 PM
setting up a monitoring box fretbrner Linux - Networking 1 02-25-2005 03:02 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration