Fresh Install Nagios 4 "Error in configuration 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.
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by t3dus »

Haven't even gotten step one done yet because I can't get the stupid centos server to connect to the internet even though IP Address information is configured correct and the network is enabled.

Not sure what the deal is but until I can sort that out I can't continue. :cry:
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by t3dus »

I ran into problems when I tried to run the command below

Code: Select all

service nagios start
which resulted in

Code: Select all

# service nagios start
Reloading systemd:                                         [  OK  ]
Starting nagios (via systemctl):  Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
                                                           [FAILED]
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by tmcdonald »

Please run the following command as root from the Nagios server command line and post the results:

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by t3dus »

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

nets in this error

-bash: /usr/local/nagios/bin/nagios: No such file or directory
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by tmcdonald »

Odd, this is after you followed @rkennedy's post? What do you have under /usr/local/nagios/ at this point?
Former Nagios employee
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by t3dus »

that was after i followed his instructions..

Code: Select all

]# cd /usr/local/nagios/
[root@localhost nagios]# dir
etc  var
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by t3dus »

I'll try again on monday
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by bwallace »

Definitely keep us posted, hopefully we can get this resolved for you quickly.
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by t3dus »

wondering if i should do a fresh install of centos again and start over or what is the best method going forward from here.
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Fresh Install Nagios 4 "Error in configuration file"

Post by bwallace »

Starting over would probably be the quickest route to take. I can vouch for the instructions that rkennedy posted, as I ran through them exactly and did not encounter any errors during (or after) the install. I installed Nagios Core on a clean, minimal CentOs 7. The only thing I did to CentOs 7 prior to installing Core was running "yum install wget" - that's it.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked