Tools Index

Logwatch

Install logwatch, ports collection contains deepthought.httpup port;

        $ prt-get depinst logwatch
        

1.1. Configure

        $ 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
        

1.2. Set cron task

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/logwatch
        
Tools Index

This is part of the Hive System Documentation. Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.