Page 1 of 1

Error processing main config file!

Posted: Tue Jan 31, 2017 6:56 am
by nagiuser
Hello,

I have problem with nagios core cfg file.

After I did install nrpe and configure all severs whose I want to monitor nagios sait to me that it have problem with open nagios.cfg file.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios

Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios' for reading!
Error processing main config file!
I don't know why it happened because I didn't change any users permission

service nagios status shows me
nagios (pid 28596) is running...
But I can't open nagios core web interface

Can anybody tell me why it happened to me?

Re: Error processing main config file!

Posted: Tue Jan 31, 2017 12:23 pm
by rkennedy
Please run the following, you missed .cfg -

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
If you are unable to access the web GUI, please post your apache logs for us to review.

Re: Error processing main config file!

Posted: Wed Mar 01, 2017 2:13 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?