DataTaunew | comments | leaders | submitlogin
Setting up a quota watcher agent in Python (coderscrowd.com)
7 points by rad 3131 days ago | 1 comment


1 point by LittlePeter 3124 days ago | link

So basically it is a cronjob that sends email if disk > 89%? Looks like overkill to me.

Put this in crontab and it will basically achieve the same:

    [email protected]


    * * * * * df --output='pcent' | grep -q -e 9[0-9] -e 100 && echo "Disk Full"

-----




RSS | Announcements