Page 1 of 1

NagiosXI failed to install

Posted: Wed Jan 25, 2017 4:56 am
by bercesm
Hi All,
I've a new virtual machine, with OS CentOS 7.
I've downloaded NagiosXI offline installer from here:http://repo.nagios.com/nagiosxi-offline ... _64.tar.gz
Installed the prerequirities.
Untar the file, which was downloaded.
Ran ./fullinstall in the correct directory
Opened a webbrowser with <server_ip>/nagiosxi
Done the steps
Now I've a webpage, where I can login, but the core nagios files are not in the directories, so I can't use the system.
I cant find install.log as well.
How can I correct this?
I've no commands.cfg in /usr/local/nagios/etc/ but i've nagios.cfg here.
It semms to me, it made the install in an incorrect way. What can I do?

Thanks for the help,
Miklos

Re: NagiosXI failed to install

Posted: Wed Jan 25, 2017 10:59 am
by rkennedy
Can you please upload a profile for us to review? (Admin -> System Profile -> Download Profile)

This will give us a bit of insight as to what's going on.

Re: NagiosXI failed to install

Posted: Thu Jan 26, 2017 9:35 am
by bercesm
I've attached it.
Now I found that there is no config file in /usr/local/nagios
(commnads.cfg, etc. so Whitch file was missing, I migrated from my test environment.
First I could start nagios engine, but I should restart the machine. Now I have this error:

Code: Select all

nagios.service: control process exited, code=exited status=203
Failed to start Nagios Core Monitoring Daemon.
What can I do?

Thanks for the advice!

Re: NagiosXI failed to install

Posted: Thu Jan 26, 2017 9:37 am
by bercesm
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 12 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

Re: NagiosXI failed to install

Posted: Thu Jan 26, 2017 10:37 am
by bercesm
Solved it with:

Code: Select all

ln -s /etc/init.d/nagios /usr/lib/systemd/scripts/nagios
Thanks!

Re: NagiosXI failed to install

Posted: Thu Jan 26, 2017 3:53 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: NagiosXI failed to install

Posted: Fri Jan 27, 2017 3:47 am
by bercesm
Yes.

Thanks, for the helps!
This thread can be locked.