Log file permissions

Just noticed a problem with the log files in Nagios, and I am not sure how to solve it. The log file is in /var/log/nagios and this is rotated every day to an /archive subdirectory. However the owner of the log file is root, and the group is adm (running on Debian) and the nagios/apache have no read acess to the files. I could change the permissions manually, but there has to be an easier way. Any ideas?

why does user apache need access? I don’t think that is a problem.

You are right, it is just Nagios that needs access - but when I, for instance, try to look at the alert history for a host I receive this error:

Error: Cannot open log file ‘/var/log/nagios/nagios.log’ for reading!

I don’t understand really how Nagios can be logging things (and the log files do fill up) but is unable to read them.

make the permissions the same as most of the other nagios files.

make the permissions the same as most of the other nagios files.