On my Windows machines I use Task Scheduler to perform two tasks:
- Inform me when the machine boots
- Inform me if disk space is running low
I managed the first point in ubuntu using crontab.
In windows I manage the second point using Events. I setup task scheduler so that if event 2013 triggers I send an email.
It is possible to achieve the same with Ubuntu server?
Thanks
Assuming you have some mail agent in the server (e.g. postfix)... try this
df --output=pcent / returns the free space percentage of my root file system.
grep strips the trailing % so if can compare integers.