CentOS 6 (amd64) up to date with latest security / bug fixes.
The logwatch reports come in plain text even though the config states HTML.
<begin /etc/logwatch/conf/logwatch.conf> mailer = "/usr/sbin/sendmail -t" TmpDir = /tmp MailFrom = logwatch@example.com MailTo = admin1 admin2 admin3 Range = yesterday Detail = Medium HostName = www.example.com Print = No Output = mail Format = html <end /etc/logwatch/conf/logwatch.conf>
The same settings in Debian/Ubuntu servers send the reports in HTML format.
In my search, I did not come across any solution for CentOS 6.
Any ideas on how to get logwatch to generate HTML reports?
Thanks for your help.
-- Arun Khan
Maybe the format is set in
sudo crontab -l
Am Montag, 29. August 2016 schrieb Arun Khan :
CentOS 6 (amd64) up to date with latest security / bug fixes.
The logwatch reports come in plain text even though the config states HTML.
<begin /etc/logwatch/conf/logwatch.conf> mailer = "/usr/sbin/sendmail -t" TmpDir = /tmp MailFrom = logwatch@example.com javascript:; MailTo = admin1 admin2 admin3 Range = yesterday Detail = Medium HostName = www.example.com Print = No Output = mail Format = html <end /etc/logwatch/conf/logwatch.conf>
The same settings in Debian/Ubuntu servers send the reports in HTML format.
In my search, I did not come across any solution for CentOS 6.
Any ideas on how to get logwatch to generate HTML reports?
Thanks for your help.
-- Arun Khan _______________________________________________ CentOS mailing list CentOS@centos.org javascript:; https://lists.centos.org/mailman/listinfo/centos
On Sun, Aug 28, 2016 at 10:56 PM, Alexander Farber alexander.farber@gmail.com wrote:
Maybe the format is set in
sudo crontab -l
You mean in the way it is invoked from the cron entry?
-- Arun Khan
No, I mean there is sometimes a variable for mail format too:
# crontab -l CONTENT_TYPE="text/plain; charset=utf-8" MAILFROM=webmaster@xxx.de MAILTO=Alexander.Farber@xxx.com LANG=en_US.UTF-8 PGHOST=/tmp #minute hour mday month wday command
On Tue, Aug 30, 2016 at 3:37 AM, Arun Khan knura9@gmail.com wrote:
On Sun, Aug 28, 2016 at 10:56 PM, Alexander Farber alexander.farber@gmail.com wrote:
Maybe the format is set in
sudo crontab -l
You mean in the way it is invoked from the cron entry?
On Mon, Aug 29, 2016 at 10:24 PM, Alexander Farber alexander.farber@gmail.com wrote:
No, I mean there is sometimes a variable for mail format too:
The HTML formatting is a logwatch option, invoked through the logwatch.conf file.
-- Arun Khan
logwatch is run as cronjob.
On Wed, Aug 31, 2016 at 4:11 PM, Arun Khan knura9@gmail.com wrote:
On Mon, Aug 29, 2016 at 10:24 PM, Alexander Farber alexander.farber@gmail.com wrote:
No, I mean there is sometimes a variable for mail format too:
The HTML formatting is a logwatch option, invoked through the logwatch.conf file.
-- Arun Khan _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Wed, Aug 31, 2016 at 7:58 AM, Alexander Farber alexander.farber@gmail.com wrote:
logwatch is run as cronjob.
Let's take cron out of the picture. Invoking logwatch from an interactive shell -- no joy. The report still goes out in text format.
-- Arun Khan
You should have provided more info initially.
"goes out in text format" might mean several things.
On Wed, Aug 31, 2016 at 5:31 PM, Arun Khan knura9@gmail.com wrote:
On Wed, Aug 31, 2016 at 7:58 AM, Alexander Farber alexander.farber@gmail.com wrote:
logwatch is run as cronjob.
Let's take cron out of the picture. Invoking logwatch from an interactive shell -- no joy. The report still goes out in text format.
-- Arun Khan _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Wed, Aug 31, 2016 at 8:59 AM, Alexander Farber alexander.farber@gmail.com wrote:
You should have provided more info initially.
"goes out in text format" might mean several things.
I don't know what you mean by "several things"
In the context of logwatch the only options are HTML or TEXT. Please see my OP.
Thanks for your assistance.
-- Arun Khan