Could Not Open Config Directory Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Could Not Open Config Directory Error

Post by rlinux57 »

Getting below error while restarting:
================================================================================
service nagios restart
Running configuration check...

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not open config directory '/etc/nagios/servers' for reading.
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 defintions. 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.
==========================================================================
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Could Not Open Config Directory Error

Post by abrist »

Does the folder exist? What permissions does it have and it's parent have?

Code: Select all

ls -lad /etc/nagios/servers
ls -lad /etc/nagios
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Could Not Open Config Directory Error

Post by rlinux57 »

I have resolved the issue, please marked as close.
Locked