You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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)
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:
So everytime logrotate is executed I get the following error:
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:
The text was updated successfully, but these errors were encountered: