Environment
SUSE Linux Enterprise Server 10 Service Pack 4
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
zmd-7.3.0.0-0.16.1
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
zmd-7.3.0.0-0.16.1
Situation
Checking the emails sent by cron to root on a SLES10SP4 system shows:
From root@sles10.domain.site Tue Feb 7 15:45:19 2012
X-Original-To: root
Delivered-To: root@sles10.domain.site
Date: Tue, 07 Feb 2012 15:45:18 +0100
To: root@sles10.domain.site
Subject: cronjob@sles10 - daily - OK
User-Agent: nail 11.25 7/29/05
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: root@sles10.domain.site (root)
running daily cronjob scripts
SCRIPT: output (stdout && stderr) follows
error: zmd-messages:6 unknown option 'endscript' -- ignoring line
SCRIPT: logrotate
------- END OF OUTPUT
X-Original-To: root
Delivered-To: root@sles10.domain.site
Date: Tue, 07 Feb 2012 15:45:18 +0100
To: root@sles10.domain.site
Subject: cronjob@sles10 - daily - OK
User-Agent: nail 11.25 7/29/05
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: root@sles10.domain.site (root)
running daily cronjob scripts
SCRIPT: output (stdout && stderr) follows
error: zmd-messages:6 unknown option 'endscript' -- ignoring line
SCRIPT: logrotate
------- END OF OUTPUT
Resolution
Please either disable the line by using a # in front of it or delete the entry completely.
Update to zmd-7.3.0.0-0.20.1 or later to address this issue.
Update to zmd-7.3.0.0-0.20.1 or later to address this issue.
Cause
This error is caused by the first "endscript" statement in
/etc/logrotate.d/zmd-messages without introducing the action to start.
Additional Information
Adjusted script to disable the first endscript entry:
"/var/log/zmd-messages.log" {
compress
compresscmd /usr/share/zmd/mergeandcompress
compressoptions bzip2
compressext .bz2
# endscript
lastaction
rm -rf /var/log/zmd-messages-*.log
endscript
dateext
daily
rotate 7
size 1M
notifempty
missingok
copytruncate
}
compress
compresscmd /usr/share/zmd/mergeandcompress
compressoptions bzip2
compressext .bz2
# endscript
lastaction
rm -rf /var/log/zmd-messages-*.log
endscript
dateext
daily
rotate 7
size 1M
notifempty
missingok
copytruncate
}