LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Looking for easy way to send warning email when disk near full. (https://www.linuxquestions.org/questions/linux-software-2/looking-for-easy-way-to-send-warning-email-when-disk-near-full-497955/)

bdb4269 11-02-2006 12:44 PM

Looking for easy way to send warning email when disk near full.
 
This is a pretty simple one. The title pretty much says it all.

I am using RedHat ES3. And I want it to send me an email when "/" partition is 85% full.

Is there something built in, that I can just set to do this, or do I need to get a utility, or write a script, etc?

unSpawn 11-02-2006 02:42 PM

If you want cross-network stuff try Nagios. If you want local, try Monit. This an example alert:
Code:

check device sdc_1 with path /dev/sdc1 every 10 cycles
  if space usage > 90 % then alert
  if space usage > 99 % then exec "monit-helper abort sdc_1"

Main config has "set daemon 30" so this check is on a five minute poll.
Also notice the exec command which means you can execute all sorts of external scripts.

bdb4269 11-02-2006 07:44 PM

Sweet!! Thanks!


All times are GMT -5. The time now is 11:55 PM.