Permission error after patching
Posted: Tue Jan 09, 2018 2:05 pm
Hello -
I run Nagios Core 4.3.2, and after applying the latest patches available from EPEL, I've started to get a permissions error when I run the syntax check command nagios -v /etc/nagios/nagios.cfg.
Nagios continues to run without apparent issue, but here is the output I get when I run the syntax checker:
Here is the file listing of contacts.cfg:
-rw-rw-r-- 1 root nagios 18031 Sep 19 13:35 /etc/nagios/objects/contacts.cfg
Kind of new to Nagios, so if anyone has advice on what these file permissions ought to be, I'd appreciate it. tia.
I run Nagios Core 4.3.2, and after applying the latest patches available from EPEL, I've started to get a permissions error when I run the syntax check command nagios -v /etc/nagios/nagios.cfg.
Nagios continues to run without apparent issue, but here is the output I get when I run the syntax checker:
Code: Select all
# nagios -v /etc/nagios/nagios.cfg
Nagios Core 4.3.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-05-09
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Cannot open config file '/etc/nagios/objects/contacts.cfg' for reading: Permission denied
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
-rw-rw-r-- 1 root nagios 18031 Sep 19 13:35 /etc/nagios/objects/contacts.cfg
Kind of new to Nagios, so if anyone has advice on what these file permissions ought to be, I'd appreciate it. tia.