Hello,

I have copied scripts from "logwatch" bacula source folder, but when I run 
"logwatch --debug High --service bacula --output stdout", logwatch doesn't run 
fine because it can't locate "Logwatch.pm". It seems logwatch process gets 
wells all logs files (I log some servers in some different files), but when all 
files concatenated go by the perl pipe, it fails in this line:

Processing Service: bacula
( cat /var/cache/logwatch/logwatch.dSY3aBHv/bacula  |  /usr/bin/perl 
/etc/logwatch/scripts/shared/applybaculadate '' |/usr/bin/perl 
/etc/logwatch/scripts/services/bacula) 2>&1


If I run this line manually, I get this error message:

Can't locate Logwatch.pm in @INC (you may need to install the Logwatch module) 
(@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 
/usr/share/perl5) at /etc/logwatch/scripts/shared/applybaculadate line 21.
BEGIN failed--compilation aborted at 
/etc/logwatch/scripts/shared/applybaculadate line 21.

I have copied logwatch scripts doing the "README" explanation (I have installed 
Bacula-11.0.6 from source files):

For manual install copy the files as indicated below:
cp -p scripts/logwatch/bacula /etc/log.d/scripts/services/bacula
cp -p scripts/logwatch/applybacula /etc/log.d/scripts/shared/applybaculadate
cp -p scripts/logwatch/logfile.bacula.conf /etc/log.d/conf/logfiles/bacula.conf
cp -p scripts/logwatch/services.bacula.conf /etc/log.d/conf/services/bacula.conf
chmod 755 /etc/log.d/scripts/services/bacula
chmod 755 /etc/log.d/scripts/shared/applybaculadate
chmod 644 /etc/log.d/conf/logfiles/bacula.conf
chmod 644 /etc/log.d/conf/services/bacula.conf

Why am I getting this error and why am not getting logwatch bacula report?

Thanks.

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to