Error processing main config file!

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
nagiuser
Posts: 1
Joined: Tue Jan 31, 2017 6:34 am

Error processing main config file!

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Error processing main config file!

Post 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.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error processing main config file!

Post 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?
Former Nagios employee
Locked