LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2007, 12:59 PM   #1
zeeple
Member
 
Registered: Sep 2006
Distribution: Fedora 8, RHEL 5
Posts: 62

Rep: Reputation: 15
System Performance Alerting


Hi folks,

What do people recommend for the following:

I want to be emailed or txt messaged when any of these things occur:

* RAM dips below 10 MB
* CPU hits 100%
* Disk space dips below 5%

Can anyone recommend a good performance monitoring/alerting package that can handle this?

Thanks!
 
Old 08-07-2007, 02:19 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Nagios

www.nagios.org

Also get the NRPE plugin. nagios runs on the main naigos server and nrpe is used on each UNIX/Linux host you want to monitor. If you have Windows hosts you can get nsclient to work with those and Nagios.
 
Old 08-08-2007, 10:59 AM   #3
zeeple
Member
 
Registered: Sep 2006
Distribution: Fedora 8, RHEL 5
Posts: 62

Original Poster
Rep: Reputation: 15
That's a pretty good idea but I was hoping there was a smaller simpler package. I ended up just doing some simple perl scripts:

#! /usr/bin/perl

if (`cat /proc/meminfo | grep MemFree` =~ /(\d+)/) { $mbfree = $1/1024; };
if ($mbfree < 25) {
`echo $mbfree | mail george\@banana.tld -s 'RAM low on SVN'`;
}
if ($mbfree < 5) {
`echo $mbfree | mail 123456789\@cell_phone.tld -s 'RAM low on SVN'`
;
}

And then scheduled it in crontab like this:

*/5 * * * * root memory_check.pl
 
  


Reply



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
LVS + monitoring and alerting VincentB Linux - Networking 0 11-16-2006 01:12 PM
*realtime* syslog monitoring/alerting with Rsyslog? TotalDefiance Linux - Software 3 11-01-2005 10:23 AM
Snort alerting with Swatch? ladyath Linux - Security 1 09-08-2004 04:22 AM
System Performance kojiroh General 0 10-09-2003 03:01 AM
System Performance? WeNdeL Linux - General 1 10-07-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:13 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
Open Source Consulting | Domain Registration