offline install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
duane909
Posts: 9
Joined: Tue Oct 02, 2018 8:02 am

offline install

Post by duane909 »

I have followed the instructions in the offline install pdf document and nothing seems to be working.
The rpms installed, I got the "completed" message.
Apache was not running, I started it up and went to <myserver>/nagiosxi and got a "404 not found".
Went to <myserver>/nagios and I get a dialog asking for an id and password. I have tried every id and password I can find and none work.
I did a service nagios status and it came back as not running. So I did a service nagios start and got many errors about missing config files.
Checked the install.log file and it just lists all the rpm's that were installed, no other messages.
What do I do???
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: offline install

Post by npolovenko »

Hello, @duane909. Do you remember seeing any errors on the screen while nagios was installing RPMs? If you haven't looked at the installation I suggest removing all nagios and nagiosxi rpms from the server and rerunning the full install script one more time. While it is running look at the output in the command line and if you see any errors share them with us in this thread.
duane909
Posts: 9
Joined: Tue Oct 02, 2018 8:02 am

Re: offline install

Post by duane909 »

Hi,
I did not see any errors during the rpm install, was hoping I missed something and looked in the install.log but no errors there either.
I did remove all the naigios and nagiosxi rpm's (and all the config files I created), reinstalled the rpm's and got the same result.
No errors on the command line, no errors in the install.log file.
Would I see more install steps if I could log on to the web interface?
~Duane
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: offline install

Post by npolovenko »

@duane909, No, I don't think you'd see any more errors in the GUI. Please sign in to the console as the nagios user, run the reconfigure script and show me the output:
su - nagios
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Please send me the list of the installed rpm packages. Run the command and upload the nagios.txt file from the /tmp/ folder:
rpm -qa > /tmp/nagios.txt
Run this command and show me the output:
ls -l /usr/local/nagios/etc/
Upload the /etc/sudoers file.
cat /etc/httpd/conf.d/nagios.conf
cat /etc/httpd/conf.d/nagiosxi.conf
grep nag /etc/passwd
grep nag /etc/group
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
duane909
Posts: 9
Joined: Tue Oct 02, 2018 8:02 am

Re: offline install

Post by duane909 »

Results for the questions are in the attached file.
results01.txt
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: offline install

Post by ssax »

Do you have this file?

Code: Select all

/tmp/xi-install.log
Please attach that if you do so that we can see what occurred.
duane909
Posts: 9
Joined: Tue Oct 02, 2018 8:02 am

Re: offline install

Post by duane909 »

Ok, found part of the problem.
Our active directory server already had the "nagios" accounts but the local server did not. When the install creates those accounts and groups they have the wrong ID numbers causing permissions problems. I manually created local accounts that mirror the ones in active directory.

The install will now get far enough that I get the Nagios XI web interface (and finished the install), but the monitoring engine will not start.

The current error message and install.log is attached.

~D
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: offline install

Post by ssax »

Please try running these commands from the installation directory and see if it resolves your issue::

Code: Select all

yum remove nagiosxi
echo "delete from mysql.user where user='nagiosxi';delete from mysql.db where user='nagiosxi';drop database nagiosxi; flush privileges;" | mysql -uroot -pnagiosxi
yum install nagiosxi-5.*
duane909
Posts: 9
Joined: Tue Oct 02, 2018 8:02 am

Re: offline install

Post by duane909 »

Have a new error, see attached file.
~Duane
You do not have the required permissions to view the files attached to this post.
duane909
Posts: 9
Joined: Tue Oct 02, 2018 8:02 am

Re: offline install

Post by duane909 »

Nevermind, same problem as above. This time it was the apache user and group that needed to be created locally using the same id numbers as up in the active directory.
~Duane
Locked