[Logwatch] Problems with configuration

Benon Fuertes benon.fuertes at diaple.com
Thu Nov 19 02:44:44 MST 2009


>
>
> First of all thank you for your answer.
>
>>
>>> I've just installed logwatch version 7.3.6 and I'm trying to  
>>> customize
>>> it to do what I want. I need to monitor one specific file, but the  
>>> "--
>>> logfile" option doesn't work.
>>> I've tried to modify the configuration file, and also by console but
>>> it gives me the messages: "Logwatch is not configured to use  
>>> logfile:
>>> someFile.log"
>>
>> The option --logfile doesn't specify a logfile (e.g. /var/log/ 
>> messages) it
>> specifies a logfile group (e.g. messages.conf which is configured in
>> /usr/share/logwatch/default.conf/logfiles/messages.conf). If you  
>> want to tell
>> logwatch to use a specific logfile for a specific service then you  
>> have to
>> edit the corresponding logfile group file (e.g. messages.conf) or  
>> create a new
>> one in /etc/logwatch/conf/logfiles/.
>
> The thing that I want to log is a file inside /var/log/apache2 which  
> refers to a virtual domain,
> so I'm trying to use the service "http", and then using the logfile  
> parameter pointing to "http.conf"
> in /etc/logwatch/conf/logfiles, file that I've copied from /usr/ 
> share/logwatch/default.conf/logfiles.
>
> Then I edit it to point to the specific log file. But doesn't work.
>
>>
>>> I also can't get it to send mails, I once did it with: mailer = "/ 
>>> usr/
>>> sbin/sendmail -t" but that was before I removed it and reinstall,  
>>> now
>>> I can't do it work, and the option "Print" is set to "no".
>>> I'm a little confused about the configuration, with many different
>>> archives that takes priorities and all that stuff, so I need some  
>>> help.
>>
>> Do you have sendmail installed (exist /usr/sbin/sendmail)? Does  
>> logwatch
>> produce any error?
>
> Sendmail exists, the thing is that the server where I am installing  
> logwatch is used as a mail server,
> and is using qmail, vpopmail, spamassasin, etc. and is in  
> production, so I have to be very careful
> with the things that I install. I can't install a new mail server,  
> for example, because there would be
> conflicts with the current one. So I read in the internet, that  
> mailer = "/usr/sbin/sendmail -t" in logwatch.conf
> could work. I tried it and it worked, that was two weeks ago. But I  
> was so confused with all the files and
> changes I had made in logwatch that I removed it and reinstalled it  
> again, and now is when can't get it
> to send mails.
>
> Regarding the other question, it doesn't produce any error except  
> when I change the service in "logwatch.conf",
> it tells me this: Wrong configuration entry for "Service", if "All"  
> selected, only "-" items are allowed
>
> Thank you, and sorry for writing so much :P
>>
>>> Any ideas? Thank you.
>>
>> regards
>> Stefan
>> _______________________________________________
>> Logwatch mailing list
>> Logwatch at logwatch.org
>> http://www2.list.logwatch.org:81/mailman/listinfo/logwatch
>
>




More information about the Logwatch mailing list