Permissions wrong on nagios.log on fresh CentOS 7 install
Posted: Mon Dec 12, 2016 5:30 pm
I installed Nagios Core 4.2.4 on CentOS 7 following instructions here: https://assets.nagios.com/downloads/nag ... entos7.pdf
Received error "Error: Cannot open log file '/usr/local/nagios/var/nagios.log' for reading!" When trying to view log files through the nagios web UI. Reviewed permissions on /usr/local/nagios/var/nogios.log and realised it was owned by nagios:nagios and lacked read permissions for "other". "chmod o+r nagios.log" resolved the issue.
Does this happen for other people? Is there a problem with the install script / instructions in the pdf? Was I holding it wrong? Inquiring minds want to know.
Received error "Error: Cannot open log file '/usr/local/nagios/var/nagios.log' for reading!" When trying to view log files through the nagios web UI. Reviewed permissions on /usr/local/nagios/var/nogios.log and realised it was owned by nagios:nagios and lacked read permissions for "other". "chmod o+r nagios.log" resolved the issue.
Does this happen for other people? Is there a problem with the install script / instructions in the pdf? Was I holding it wrong? Inquiring minds want to know.