Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Getting these emails from root...
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Getting these emails from root...

grimsdottirgrimsdottir Member
edited May 2016 in Help

Set up postfix as an outgoing mail daemon.

Started getting these errors. I'm more curious about where to start looking

Subject line:
Cron <root@Hostname> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Body:
/etc/cron.daily/logrotate: error: rsyslog:31 unknown option 'notifemtpy' -- ignoring line

It's odd because the logrotate script doesn't have a line 31 as the error suggests.

What is the context here? I'd love to learn something from this.

Comments

  • rds100rds100 Member
    edited May 2016

    The file you need to look at is /etc/logrotate.d/rsyslog

    Thanked by 1grimsdottir
  • Not sure how notifempty is an unknown option.

    It's not even on line 31. I guess that has to do with the way the config file is read.

    I have my auth.log section split out below this portion, that one's notifempty doesn't throw a flag.

    /var/log/mail.info
    /var/log/mail.warn
    /var/log/mail.err
    /var/log/mail.log
    /var/log/daemon.log
    /var/log/kern.log
    /var/log/user.log
    /var/log/lpr.log
    /var/log/cron.log
    /var/log/debug
    /var/log/messages
    {
            rotate 4
            weekly
            missingok
            notifempty
            compress
            delaycompress  /* <-- this is line 31 */
            sharedscripts
            postrotate
                    reload rsyslog >/dev/null 2>&1 || true
            endscript
    }
    
  • rds100rds100 Member

    Have you edited this file, or is it the distribution's standard one?
    I'd try to erase this line and write it again. Perhaps one of the letters is not what it seems (i.e. cyrillic е instead of latin e). Perhaps there is a space at the end of the line that is confusing the logrotate script. Or something else.

  • @rds100 said:
    Have you edited this file, or is it the distribution's standard one?
    I'd try to erase this line and write it again. Perhaps one of the letters is not what it seems (i.e. cyrillic е instead of latin e). Perhaps there is a space at the end of the line that is confusing the logrotate script. Or something else.

    I have made many edits to this file.

    Good point, thank you for the tip.

  • there's a typo in that line. notifemtpy. empty is misspelled.

Sign In or Register to comment.