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 apf1.sh
Put this on the file:
#!/bin/bash
tail -200 /var/log/apf_log | mail -s "APF Status" you@yourdomain.comSave and Exit
Make it executable:
# chmod 755 apfstatus.sh
Move it to "/etc/cron.daily" folder:
# mv apf1.sh /etc/cron.daily
You will receive now a daily email with APF status.
You can read this:
How to Install APF
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment