LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 07-15-2010, 10:54 PM   #1
mmosier
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

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

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



Cheers,
Tink
 
Old 07-15-2010, 11:16 PM   #3
keeperofdakeys
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.
 
  


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


All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
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