Univention Bugzilla – Bug 48746
Nagios event log: Error: Could not open log file '/var/log/nagios/nagios.log' for reading!
Last modified: 2021-05-14 16:34:26 CEST
Nagios "Event Log" page (in the left menu in the "Reports" category) seems to be broken by default in the Nagios app. It just shows an error after the installation of the app: Error: Could not open log file '/var/log/nagios/nagios.log' for reading! This seems to be a problem with permissions. -rw-r----- 1 nagios nagios 19768 Feb 22 22:32 /var/log/nagios/nagios.log I've managed to get it working by adding the user "www-data" to the group "nagios" and restarting apache2. Adding the "nagios" user to the "www-data" group and executing "chown nagios:www-data" on the file works as well but I'm not entirely certain which is better from a security perspective.
seen this while upgrading a customer environment to 4.4-1
In my test-enviroment same problem. Solved also by adding the group nagios to the user www-data
The same behavior for me with UCS 4.3 and also after a fresh installation of UCS 4.4. Nagios module was added after the initial installation, not selected during the installation.
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.