Script to daily email APF status

You are running APF on your server, but sometimes you think “is APF running fine?”
This script sends you an email with APF satus.

Log in to your server as root

Create the script:
# nano

Put this on the file:

tail -200 /var/log/apf_log | mail -s “APF Status”

Save and Exit

Make it executable:
# chmod 755

Move it to “/etc/cron.daily” folder:
# mv /etc/cron.daily

You will receive now a daily email with APF status.


I am a g33k, Linux blogger, developer, student and Tech Writer for My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.