NagiosXI Install Problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

NagiosXI Install Problems

Post by bvinisky »

Redhat 5.5
32bit 2.6.18-194.el5PAE
Manual install of XI
Clean install of Redhat, no proxy in use.

Output from restarting the database services:
[root@groundwork-new nagiosxi]# service mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@groundwork-new nagiosxi]# service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]

I've been struggling to get NagiosXI installed on a clean Redhat box. I've made it as far as the ./E-importnagiosql by installing many of the dependencies manually. However, the number of failures has made me nervous about the current state of the install. I've had to manually install php-pear, mrtg, postgresql, postgresql-server, mysql, mysql-server, pnp4nagios and nrpe to get past various points in the full install.

Regardless of this though, i've been unsuccessful in completing the install since it's now failing with 'ERROR: No files to import - exiting. Were Nagios Core and NagiosQL installed?' These were installed successfully as far as I could tell. I've removed the /usr/local/nagios and /usr/local/nagiosxi folders and tried reinstalling everything but run into the same road block(s).

When I look at the script, I see that it's trying to pull in files from /usr/local/nagios/etc/import. This folder is empty though. I moved in the standard .cfg files from the VMWare Virtual Machine (which is the only instance i've been able to get working, but not a long term solution for us) and run E-importnagiosql, but then it fails with "ERROR: Unable to login to NagiosQL on 'localhost' - exiting. If you have a proxy configured, this may be the cause of the problem." If the E-mportnagiosql is run again it will fail again with 'ERROR: No files to import - exiting. Were Nagios Core and NagiosQL installed?' since /usr/local/nagios/etc/import is now empty.

What could be causing this latest error or the numerous problems i've encountered trying to install NagiosXI? Any thoughts?

Thanks.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: NagiosXI Install Problems

Post by nscott »

Which version of Nagios XI are you trying to install? We found a bug that affects particular systems, but it should be fixed in the latest 1.5 release.
Nicholas Scott
Former Nagios employee
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Re: NagiosXI Install Problems

Post by bvinisky »

I assume that it's the latest version. I used wget http://assets.nagios.com/downloads/nagi ... est.tar.gz to grab it. This has been done several times after the 23rd or June. Is there an easy way to verify the version? I can grab the exact package name I suppose and give it a try. Anything I should do for clean up steps or is it ok to try it right over the top?
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Re: NagiosXI Install Problems

Post by bvinisky »

The file I received when downloaded was dated 6/23/11, so it must have been the latest version. I tried downloading the r1.5 tarball anyway to see if it made a difference. It didn't unfortunately, I'm still hitting 'ERROR: Unable to login to NagiosQL on 'localhost' - exiting.'

I tried another install on a fresh computer and these are the dependencies I ran into:
- Failure on install ./1-prereqs: mrtg php-pear postgresql postgresql-server mysql mysql-server. Manually installed to proceed.
- The pnp folder wasn't created during ./A-Subcomponents. Something named pnp was there, but it wasn't a folder. I removed it and created a pnp folder.
- Error cannot open config file /usr/local/nagios/etc/contacttemplates.cfg. This can be resolved by moving in templated .cfg files from another system.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI Install Problems

Post by mguthrie »

Did you have mysql and or postgres installed on this system before running the install scripts? If the root password for mysql was already set this will cause problems for the install scripts. Also, you need to run the install scripts from the /tmp/nagiosxi directory as the documentation says, otherwise there will be permissions problems during the script.
[root@groundwork-new nagiosxi]
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Re: NagiosXI Install Problems

Post by bvinisky »

Neither were present on the system before I tried the very first install attempt. However, originally the install would fail because both mysql and psql were not present. So I installed them manually. I set the db password to nagiosxi and i've been prompted for it when running through the rest of the installs. It takes the password ok. If I remove them, the ./1-prereq will fail with ERROR: Prerequisite program 'psql' not found! Mysql seems to be making in via the script now.

I've also noted that during the prereqs that libpng-devel and libXau-devel are missing and not found. I can't locate them in the repos manually either. But neither of these seem to hold up the install.

I have followed the documentation to a T and have been running the install scripts from /tmp/nagiosxi/
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Re: NagiosXI Install Problems

Post by bvinisky »

To make sure I've covered all my bases, I removed postgresql and mysql, as well as blew away their respective directories in /var/lib/. In addition, I removed all of /usr/local/nagios/ and /usr/local/nagiosxi/ so i was starting from scratch. I ran through the full install again, but it failed because neither postgresql and mysql were there. So I reinstalled them by hand. If the mysql daemon was left running, which it seems to be by default after an install, the NagiosXI install would prompt for a mysql password. To resolve this, I stopped the mysql daemon, continued the install and it seemed to of set the password correctly from there. However, it failed a bit later because there was nothing in the /usr/local/nagios/etc/import/ directory (as i've mentioned before), so I placed templated *.cfg files in there and moved on. NagiosXI then choked because there were no hosts or services defined. I placed a templated .cfg file in the hosts and services directories, then continued. I'm back to where i was before: "ERROR: Unable to login to NagiosQL on 'localhost' - exiting. If you have a proxy configured, this may be the cause of the problem."

I'm running out of ideas. Any help is greatly appreciated. Thanks!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI Install Problems

Post by mguthrie »

Is this copy of RHEL registered with the RHN? If it's not, it needs to be registered before attempting installation, otherwise you won't be able to update the repo information correctly.

Are you getting any kind of a repo error when you run:

Code: Select all

yum install mysql
or

Code: Select all

yum install postgresql
The only thing I could think that would prevent
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Re: NagiosXI Install Problems

Post by bvinisky »

There are no repo errors. The machine is registered with our Satellite systems manager, so it should be registered with RHN.
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Re: NagiosXI Install Problems

Post by bvinisky »

If I skip E-importnagiosql, proceed with F-startdaemons and try to access http://<ip>/nagiosxi/ i get: DB Connect Error [nagiosxi]: Database connection failed.
It seems to be so close to being finished and that only a few items aren't configured...

A few other items i've tried, but to no avail:
- Removed /usr/local/nagiosxi, /usr/local/nagios/, /etc/nagios/, /etc/nagiosql/, /var/lib/mysql, /var/lib/pgsql/, /var/www/html/nagiosql/ and then reinstalled nagiosxi.
- Brought over /usr/local/nagiosxi/, /usr/local/nagios/, /var/lib/mysql/ and /var/lib/pgsql from a clean instance of the VM.
Locked