Page 1 of 2
offline install
Posted: Thu Oct 25, 2018 2:23 pm
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???
Re: offline install
Posted: Thu Oct 25, 2018 4:04 pm
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.
Re: offline install
Posted: Fri Oct 26, 2018 7:30 am
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
Re: offline install
Posted: Fri Oct 26, 2018 10:24 am
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
Re: offline install
Posted: Tue Oct 30, 2018 11:28 am
by duane909
Results for the questions are in the attached file.
results01.txt
Re: offline install
Posted: Tue Oct 30, 2018 2:33 pm
by ssax
Do you have this file?
Please attach that if you do so that we can see what occurred.
Re: offline install
Posted: Wed Oct 31, 2018 12:34 pm
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
Re: offline install
Posted: Wed Oct 31, 2018 3:40 pm
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.*
Re: offline install
Posted: Thu Nov 01, 2018 10:04 am
by duane909
Have a new error, see attached file.
~Duane
Re: offline install
Posted: Thu Nov 01, 2018 10:47 am
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