Hi all, after showing you how to simply check load average or memory usage on linux, today i’ll simply show you how to check disk space and take action if a threshold is reached. We’ll simply use df, grep, awk, cut and if/then to do this : Just put it in your crontab and you’ll …
Tag: threshold
In your admin work it can be useful to check free memory and take action on threshold. The most tools don’t show you a realistic state of your memory. For example if you launch « top » command on a server, you’ll obtain an information like this : If you use the « free » command, you’ll obtain the …