As linux to configure notification of the lack of free space in the mail?

Good afternoon. Prompt:
Created VM of ubuntu, LVM najadi for expansion, yet drove in the test, ran out of space, web face disappeared, LVM refused to expand, the place was 0.

In current situation it is easier to create a VM with 0 and continue to test. Tell me - is there any tool by Zabbix and SNMP (to introduce yet more expensive) that can just monitor free space, and upon reaching say 80% on the section, write a letter or another signal ? so time to react ?
April 4th 20 at 13:17
4 answers
April 4th 20 at 13:19
monit for example

Anyway, you're talking about the task of monitoring
Yuzal to restart the daemon, a great thing! Thank you for reminding me.! - Lucas_Mosciski17 commented on April 4th 20 at 13:22
April 4th 20 at 13:21
in the past Zabbix and SNMP

two options -
1) Zabbix and the like. There are those that are easier.
2) the script in crontab, as described above

Or - to look at the disk space now and in an hour (day), understand that I place, and 1) to estimate what will happen in a week, 2) increase log rotation, and other crown cleaning/archiving
It will not work. There are files spread.
Looking for a ready-made solution/script.

Which can be in the crontab stuff. The scripts were written, but the mail didn't work. - Lucas_Mosciski17 commented on April 4th 20 at 13:24
1) it is necessary to bring mail to the state that can manually send the email

mail-s "test"

and get it

2) and use something like

df -h | mail-s "disk report"

can terms, of course - Charlotte_Homenick commented on April 4th 20 at 13:27
April 4th 20 at 13:23
to write a script using df to put in crowns.
April 4th 20 at 13:25
If you know of space on the filesystem of your VM, where it is stored something, you can just make a script which under the schedule (in cron job) to clean this place. For example once an hour...

Find more questions by tags LinuxLVMUbuntu