npolovenko wrote:@vijilants, Lets check permissions on the /var/log/snmptt folder:
ls -ld /var/log/snmptt/
Then run the following command and let me know if you see any errors:
/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
Then right after that run this command and show me the output:
tail -20 /var/log/messages
Please see below:
# ls -ld /var/log/snmptt/
drwxrwxr-x 2 snmptt snmptt 73 Aug 24 11:23 /var/log/snmptt/
#
#
# /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
error: skipping "/var/log/snmptt/snmptt.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 "/var/log/snmptt/snmpttsystem.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 "/var/log/snmptt/snmpttunknown.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 "/var/log/snmptt/snmptthandler.debug" 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 "/var/log/snmptt/snmptt.debug" 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.
#
#
# tail -20 /var/log/messages
Nov 19 09:20:01 londnms1 systemd: Started Session 1335743 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335743 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335745 of user root.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335745 of user root.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335746 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335746 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335747 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335747 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335750 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335750 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335748 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335748 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335749 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335749 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335751 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335751 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335752 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335752 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Started Session 1335753 of user nagios.
Nov 19 09:20:01 londnms1 systemd: Starting Session 1335753 of user nagios.
# [/quote]