17Apr/084
Logwatch + OS X
I needed to install logwatch a OS X machine for work, and i figured i would just document the process.
curl -o logwatch.tar.gz ftp://ftp.kaybee.org/pub/linux/logwatch-7.3.6.tar.gz
tar xzpf logwatch.tar.gz
cd logwatch-7.3.6/
sudo bash install_logwatch.sh
At this point just use all the defaults
sudo cp -r conf/* /etc/logwatch/conf/
sudo cp -r scripts/services/* /etc/logwatch/scripts/services/
Thats is... logwatch is installed as you can see by running
sudo logwatch
(cias staff at this point look to our internal wiki)
Now you just need to tweak your /etc/logwatch/conf/logwatch.conf file to suit your needs
Also if you want it to run everynight at midnight put a script in /etc/periodic/daily
July 6th, 2008 - 00:15
Is it possible to show the total MB / GB transferred daily for AFP? This will be a great feature if it is not already available. I use it regularly with my HTTP servers.
November 16th, 2009 - 08:06
Niceone. Have you got a daily script example for the /etc/periodic/daily directory?
Thanks,
Rob
January 29th, 2010 - 17:50
Am also wondering if you have a script example for logwatch in /etc/periodic/daily
This way, hopefully both the usual daily reports and logwatch could be combined into one big fat report for the day. So the admin only gets one email instead of two.
February 20th, 2011 - 11:09
Thanks, good stuff. I’m a Linux Server Guy, trying to setup one of my favourite tools on the family iMac.
1 – you have a typo in this line:
sudo cp -r scripts/services/* /etc/logwatch/scrits/services/
(s/be scripts)
2 Although all seems to work fine, I did get two errors when installing:
install_logwatch.sh: line 122: munge_gzcat: command not found
makewhatis: illegal option — s
– steve