New logwatch module not working in cron
Gordon Charrick
gordonmc at cox.net
Thu Jan 27 17:24:53 UTC 2011
I wrote a new logwatch module for vnstat and put it in
/etc/logwatch/scripts/services. If I run logwatch from the command line,
it works fine. When cron runs it, the vnstat module doesn't run. The
module is extremely simple - all it does is run the vnstat command.
There are no errors being reported. All I get is an empty begin/end
section for vnstat in the email from logwatch.
I know it's not selinux because I originally had problems with that and
I fixed that with a local selinux module for vnstat. I also specifically
have the full path to the vnstat command in the logwatch vnstat script.
Anyone have any clues on fixing this?
Gordon
More information about the users
mailing list