Install logwatch, ports collection contains deepthought.httpup port;
$ prt-get depinst logwatch
$ sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/
Example configuration;
MailTo = admin@box MailFrom = logwatch Range = Today Detail = Med
Activate all or per service;
#Service = All Service = http Service = exim Service = dhcpd
$ sudo /usr/share/logwatch/scripts/logwatch.pl
First make sure that email gets deliver;
$ sudo /usr/share/logwatch/scripts/logwatch.pl --output mail
Create file /etc/cron/daily/logwatch;
#!/bin/sh # # /etc/cron/daily/logwatch: run logwatch and mail output # /usr/share/logwatch/scripts/logwatch.pl --output mail # End of file
$ sudo chmod +x /etc/cron/daily/logwatchTools Index
This is part of the Hive System Documentation. Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.