Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server with a partition that contains all the uploaded files from my users... It gets empty after the files received are send to the CDN.

Everything works. But I am worried that one day the partition might get full.

My first question is:

What happens when a Linux (Ubuntu 12) hard drive partition is full?

Is there a way that if my hard drive as certain amount of space on it, a script is executed? Maybe a Hook? So that I can stop my users from uploading for a certain amount of time.

share|improve this question
    
Which, if any, system monitoring tools do you use? –  jscott Jan 27 '13 at 20:01
add comment

1 Answer

up vote 1 down vote accepted

A simple thresholding tool like Monit would provide quick drop-in alerting for system resources.

It's well-supported, stable and is covered heavily here on Server Fault.

The examples in the documentation would work for what you're trying to do.

share|improve this answer
    
What about zabbix? –  jnbdz Jan 27 '13 at 20:21
    
Zabbix is fine. I recommended Monit because it's lightweight and can install in a few minutes. Zabbix, ZenOSS, OpenNMS, etc. are all more involved. –  ewwhite Jan 27 '13 at 20:22
add comment

Your Answer

 
discard

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.