LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2006, 09:49 AM   #1
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
disk statistics warning


Hi,
I'm looking for a disk statistics warning email that would be automatically sent if the partition fills to over a certain percentage.
However, I have some partitions that normally are at 100%. I do not want email on systems with those types of partitions. (Redo logs for DB grow to 100% then switch to another redo log partition).

So I would like notified if /usr was over 80% but not on /redo* no matter what it's usage percentage is.

Does anyone have something like this they would share?

Thanks in advance!

Last edited by DotHQ; 09-11-2006 at 09:51 AM.
 
Old 09-11-2006, 10:20 AM   #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 is a full monitoring package you can run from a central server and see status via a browser.

NRPE is a plugin you can install on individual UNIX/Linux servers to monitor them. One of the binaries that comes with this plugin is "check_disk" which allows you to specificy warning and critical levels. In your nrpe.conf you would specify each partition you wish to monitor giving each the respective warning/critical levels you are interested in.

The main Nagios web site is: http://www.nagios.org/

There is also even a plugin for Windows called "nsclient" that can be used for monitoring those systems.

We use the Nagios for monitoring CPU, Memory and disks, Oracle status, other processes. The beauty to Nagios is you can even write your own scripts to use within NRPE/Nagios to check various things.

For example I've written scripts to determine which node of a two node cluster is currently answering as the home of the "app". It shows a warning if failed over to the failover node and critical if down completely. We've also written monitors to use lynx to check status of web sites at a rudimentary level.

Even if you don't want to do the full Nagios setup you can get benefit by downloading the NRPE plugin and just running its command from the command line.

For example running:
/usr/local/nagios/libexec/check_disk -w 15% -c 5% -p /dev/sda7

Produced:
DISK OK - free space: / 5005 MB (83%);| /=1040MB;5138;5742;0;6045

In the first line we tell it to warn at 85% utilization (15% free) and go critical at 95% utilization (5% free). The partition is /dev/sda7.

The output shows "OK" (we haven't hit either warning or critical) along with the fact that it is using 5005 MB which is 83% utilization. It also figured out on its own that this is the root filesystem (/).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Unix warning system for disk space shortage LXer Syndicated Linux News 0 06-17-2006 10:54 PM
Statistics NightSoul Linux - Newbie 6 06-10-2006 11:32 PM
lm_sensros statistics JJX Linux - Newbie 0 04-24-2004 04:25 PM
Squid statistics Padre Linux - Networking 0 12-14-2003 01:56 AM
Warning: /dev/hdb is not on the first disk Valerie Linux - Newbie 9 07-03-2001 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:28 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