swolf wrote:Hi
@Philix,
We haven't figured out what the issue is yet, but I've set up several test machines running 4.4.3 and 4.4.5 to see if we can reproduce.
There are a couple of other things we can take a look at, though they probably won't lead to resolution.
1. I'm curious to see the permissions for the two directories where these files are stored. Could you run:
Code: Select all
ls -l -d /usr/local/nagios/var
ls -l -d /usr/local/nagios/var/archives
drwxr-xr-x 5 nagios nagios 4096 Sep 4 11:10 /usr/local/nagios/var
root@debian:~# ls -l -d /usr/local/nagios/var/archives
drwxrwxr-x 2 nagios nagios 4096 Sep 3 13:12 /usr/local/nagios/var/archives
2. When was the last time you restarted Nagios Core? If you haven't restarted between 8-25 and now, can you try that:
and then verify that log rotation is still broken?
root@debian:~# service nagios restart
root@debian:~#
root@debian:~# grep last_log_rotation /usr/local/nagios/var/status.dat
last_log_rotation=0
root@debian:~# grep ROT -5 /usr/local/nagios/var/nagios.log
[1566712800] LOG ROTATION: DAILY
[1566712800] LOG VERSION: 2.0
[1566712800] CURRENT HOST STATE: localhost;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.13 ms
[1566712800] CURRENT SERVICE STATE: localhost;Current Load;OK;HARD;1;OK - load average: 1.01, 0.82, 0.79
[1566712800] CURRENT SERVICE STATE: localhost;Current Users;OK;HARD;1;USERS OK - 1 users currently logged in
[1566712800] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 10975 bytes in 0.002 second response time
FYI
I installed PNP4Nagios and Postfix on the Nagios server on 8-25, and I restarted the Nagios process on a regular interval, using the command systemctl restart Nagios. Also, I am able to see the notification and event log files, however when clicking on the Latest Archive for both Notification and Event Log, getting the error message.