xi 1.8 installation failure

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

xi 1.8 installation failure

Post by hhlodge »

Trying to do a manual install on CentOS 5.7 64 bit and it's really wigging out. Firstly, it fails for packages missing and I thought the script handled installing all the packages it needed. Snipped from running the 'fullinstall' script.

which: no mrtg in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'mrtg' not found!
which: no pear in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'pear' not found!
Prerequisite program 'httpd' found at /usr/sbin/httpd
which: no psql in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'psql' not found!
Prerequisite program 'mysql' found at /usr/bin/mysql
Prerequisite program 'mysqladmin' found at /usr/bin/mysqladmin
3 prerequisite(s) missing - exiting.
RESULT=1

So I install mrtg, pear, postgresql manually and then it fails for postgresql not being installed when it clearly is.

Running './3-dbservers'...
ERROR: PostgresQL not installed - exiting.
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
The script that failed was: './3-dbservers'

# rpm -q postgresql
postgresql-8.1.23-1.el5_7.3
[root@NagiosUK nagiosxi]# ./1-prereqs
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Prerequisite program 'sed' found at /bin/sed
Prerequisite program 'ping' found at /bin/ping
Prerequisite program 'wget' found at /usr/bin/wget
Prerequisite program 'php' found at /usr/bin/php
Prerequisite program 'mrtg' found at /usr/bin/mrtg
Prerequisite program 'pear' found at /usr/bin/pear
Prerequisite program 'httpd' found at /usr/sbin/httpd
Prerequisite program 'psql' found at /usr/bin/psql
Prerequisite program 'mysql' found at /usr/bin/mysql
Prerequisite program 'mysqladmin' found at /usr/bin/mysqladmin
Prerequisites installed OK

What's going on here?
- Kyle
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: xi 1.8 installation failure

Post by lmiltchev »

Kyle,

Was this a "clean" install? Proxy, SSL, NAT?
Be sure to check out our Knowledgebase for helpful articles and solutions!
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: xi 1.8 installation failure

Post by hhlodge »

Let me find out, it is not my infrastructure. I know I can download and install RPMs via yum cleanly, so I didn't imagine much else getting in the way.
- Kyle
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: xi 1.8 installation failure

Post by hhlodge »

This is brand new clean build. I am going straight out the firewall with a NAT'd address, but I do NAT at our site - as I'm sure almost everyone does - without installation issues. No proxy. I don't know what type of SSL you're referring to.
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: xi 1.8 installation failure

Post by mguthrie »

Can you remove the /tmp/nagiosxi directory, untar the tarball again, and try running the installation from the beginning? If it fails, can you send us the install.log file? We'd like to pinpoint exactly where and what packages are failing to install. The yum repos have kept us on our toes with several changes in the last 6 weeks, so I'd like to trace exactly what's failing.
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: xi 1.8 installation failure

Post by hhlodge »

Failed. install.log sent to xisupport@nagios.com
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: xi 1.8 installation failure

Post by mguthrie »

Thanks, we'll take a look at this and let you know what we figure out.
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: xi 1.8 installation failure

Post by hhlodge »

Any progress on this? I have to get going on it as it's also holding up my upgrade of my xi instance from 1.5 to 1.8 as I don't trust the installer. So I did some debugging today and it seems like a simple logic issue.

Code: Select all

# sh -x init-postgres 
+ '[' -f installed.postgresql ']'
+ '[' '!' -x /etc/init.d/postgresql ']'
+ echo 'ERROR: PostgresQL not installed - exiting.'
ERROR: PostgresQL not installed - exiting.
+ exit 1
# rpm -qa | grep post
postgresql-libs-8.1.23-1.el5_7.3
postgresql-8.1.23-1.el5_7.3
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: xi 1.8 installation failure

Post by mguthrie »

Our tech who was diving in on this is currently out today, but I know he was in the middle of investigating an issue with circular/broken dependencies related to some of the perl packages. There have been a lot of package changes in the yum repos in the last 6 weeks, and it's creating a bit of a nightmare for our installers...