8000 GitHub - prohfesor/freespacealert: Server free space email alert
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

prohfesor/freespacealert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

freespacealert

Server free space email alert

About

This script is pretty simple - just send an email if your server free space is critical.

Installation

Same simple.

  1. Get the contents from this repo.
  2. Setup config
  3. Setup crontab
  4. Sleep calm!

Configuration

Copy config_sample.php to congfig.php:

cp config_sample.php config.php

Edit your config.php - set up paths of your disks to be checked, minimum space (default 1Gb or 1%), emails to send. Add a line to crontab: (example)

#every hour
0 * * * * php /home/user/freespacealert/freespacealert.php
#-or-
#every half an hour
0,30 * * * * php /home/user/freespacealert/freespacealert.php

Do a test run:

php /home/user/freespacealert/freespacealert.php

Now it's all fine.

About

Server free space email alert

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0