Monitor Linux hard disk

Asked

Viewed 91 times

2

Hello I would like to know if it is possible to perform a certain action(run a shell script file for example) when the server exceeds a certain percentage of storage.

*Command used to view the server disk space: df -h

Att,

  • Make a cron job that runs a Shell Script used to check the disk space. In this shell script you can run something (like sending an email) depending on the return of df -h. Your cron job could be set to run every minute (or as you wish).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.