I've got logwatch sending me reports every day and part of that report is a disk space analysis. I was wondering how I could modify the disk space script to put emphasis on disks that are greater than 90% full. Is there a way to do that without modifying the core of Logwatch?

1 Answer 1


So it turns out you can modify the disk usage script located at /usr/share/logwatch/scripts/services/zz-disk_usage. I captured the output of the df command logwatch was using and parsed it to look for percentages over a certain amount.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.