Log rotate errors after upgrading to 5.6.1
Posted: Mon May 06, 2019 7:53 am
I have Red Hat 7 64bit VM's that were recently upgraded from Nagios 5.5.9 to 5.6.1. Since the upgrade, I am seeing errors every morning for log rotate:
File ownerships seem different that I see on the servers running 5.5.9 (5.5.9 shows nagios:nagios, 5.6.1 as listed below)
If I try updating /usr/local/nagiosxi/var to root:root, then I get errors from crond telling me the writing to the log files is denied:
Any suggestions?
Code: Select all
/etc/cron.daily/logrotate:
error: skipping "/usr/local/nagiosxi/var/cleaner.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/cmdsubsys.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/dbmaint.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/deadpool.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/event_handler.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/eventman.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/feedproc.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/nom.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/perfdataproc.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/recurringdowntime.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/reportengine.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/sysstat.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/wkhtmltox.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/xidebug.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/usr/local/nagiosxi/var/xidebug.log.backtrace" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
Code: Select all
drwxr-xr-x 11 root nagios 4.0K Mar 25 10:32 .
drwxr-xr-x. 21 root root 4.0K May 2 08:18 ..
drwxr-xr-x. 2 root nagios 4.0K Mar 25 10:32 cron
drwxr-xr-x. 4 root nagios 4.0K May 2 08:18 etc
drwxr-xr-x. 17 root nagios 4.0K May 2 08:20 html
drwx------ 2 root nagios 16K Mar 18 13:54 lost+found
drwxr-xr-x. 3 root nagios 4.0K Mar 25 10:32 nom
drwxr-xr-x. 4 root nagios 4.0K May 6 08:38 scripts
drwsrwsr-x. 2 root nagios 4.0K May 2 08:19 tmp
drwxr-xr-x. 2 root nagios 4.0K Mar 25 10:32 tools
drwxrwxr-x. 7 root nagios 4.0K May 6 08:43 var
Code: Select all
/bin/sh: /usr/local/nagiosxi/var/feedproc.log: Permission denied