Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #8190] Ubuntu 12.04 Precise Pangolin logrotate => "unknown option 'su' -- ignoring line" #2507

Closed
icinga-migration opened this issue Jan 12, 2015 · 6 comments
Labels
area/setup Installation, systemd, sample files bug Something isn't working

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8190

Created by thisismyname on 2015-01-12 15:27:22 +00:00

Assignee: (none)
Status: Closed (closed on 2015-04-29 16:31:28 +00:00)
Target Version: (none)
Last Update: 2015-04-29 16:31:28 +00:00 (in Redmine)

Icinga Version: 2.2.2

The Ubuntu 12.04 Precise Pangolin package from http://packages.icinga.org/ubuntu/ adds a logrotate file under /etc/logrotate.d/icinga2.conf. It makes use of the "su"-Option:

/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
      [...]
        su nagios nagios
      [...]
}

/var/log/icinga2/error.log {
     [...]
        su nagios nagios
     [...]
}

So everytime logrotate is executed I get the following error:

/etc/cron.daily/logrotate:
error: icinga2:4 unknown option 'su' -- ignoring line
error: icinga2:4 unexpected text
error: icinga2:20 unknown option 'su' -- ignoring line
error: icinga2:20 unexpected text

With a quick look I couldn't find anything official, but this post:
https://code.google.com/p/ganeti/issues/detail?id=631
leads me to the assumption, that the "su"-Option is not yet implemented in logrotates package for Ubuntu 12.04.


Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-09 09:14:01 +00:00

  • Status changed from New to Feedback
  • Assigned to set to thisismyname

Are you interested in providing a patch for this?

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-03-09 14:47:22 +00:00

  • Status changed from Feedback to New
  • Assigned to deleted thisismyname

I'm taking this as a "no". Removing assignee.

@icinga-migration
Copy link
Author

Updated by thisismyname on 2015-03-09 15:34:46 +00:00

Jah, sorry missed this totally! But my fix was to just remove the "su nagios nagios"-Line. I don't know any other solution and I don't know if this is recommended.
The Problem only occured on a testsystem, so I didn't check if everything works propperly.

@icinga-migration
Copy link
Author

Updated by Trefex on 2015-03-19 13:22:59 +00:00

I have the same issue.

I tried removing the su option from the logrotate script and forced a logrotate run using logrotate -vf /etc/logrotate.d/icinga2

Perhaps, the su lines can be removed on the PPA for Ubuntu packages? Where is formorer :)

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-04-29 16:31:28 +00:00

  • Status changed from New to Closed

'su' is gone in 2.3.4 from the logrotate configuration. I consider this resolved then.
https://github.com/Icinga/icinga2/blob/support/2.3/etc/logrotate.d/icinga2.cmake

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-05-12 07:57:55 +00:00

  • Relates set to 9249

@icinga-migration icinga-migration added bug Something isn't working area/setup Installation, systemd, sample files labels Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant