Page 2 of 5
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Fri Feb 05, 2016 4:47 pm
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.

Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Fri Feb 05, 2016 5:56 pm
by t3dus
I ran into problems when I tried to run the command below
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]
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Sun Feb 07, 2016 2:15 pm
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
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Sun Feb 07, 2016 2:54 pm
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
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Sun Feb 07, 2016 3:04 pm
by tmcdonald
Odd, this is after you followed
@rkennedy's post? What do you have under
/usr/local/nagios/ at this point?
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Sun Feb 07, 2016 3:16 pm
by t3dus
that was after i followed his instructions..
Code: Select all
]# cd /usr/local/nagios/
[root@localhost nagios]# dir
etc var
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Sun Feb 07, 2016 3:20 pm
by t3dus
I'll try again on monday
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Mon Feb 08, 2016 11:27 am
by bwallace
Definitely keep us posted, hopefully we can get this resolved for you quickly.
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Mon Feb 08, 2016 11:55 am
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.
Re: Fresh Install Nagios 4 "Error in configuration file"
Posted: Mon Feb 08, 2016 12:50 pm
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.