Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want a simple cron job for Debian which could check for basic things like disk full or high load.

I believe there is already made solutions, so I can save my time and not write my own script.

Any suggestions are welcome.

UPD: I will stick to monit because its easier to setup, but if I would need something more complicated I will use Nagios plugins.

Thanks everyone!

share|improve this question
Don't forget to accept the answer that worked for you :-) – aseq Apr 25 '12 at 1:03
up vote 5 down vote accepted

As Bart notes, you can use Nagios/Nagios plugins to do this.

You can also set up Monit, which will give you some basic monitoring in a nice, simple package. Monit will also do "process healing", so, if, say, the ClamAV process falls over, Monit will notice that event, inform you of it, and restart it. Monit runs as a daemon, so you won't have to muck around with cron.

Besides the standard systems stuff (load, disk space, free RAM), here's some configuration sample for a variety of services:

Ah, Debian docs on Monit:

share|improve this answer

I tend to use Nagios Plugins for this. They are meant for nagios, but you can just use them as standalone scripts. They will return OK, WARNING or ERROR, followed by some extra info.

Just take the bits you want to check and make a tiny script to run them, mail/save the results and put it in the crontab.

share|improve this answer
Looking at return codes can also be useful - – andol Apr 23 '12 at 15:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.