xi 2011r1.5 Install failure on CentOS 5.6 x86_64

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
iamfromit
Posts: 4
Joined: Thu Jun 30, 2011 12:34 pm

xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by iamfromit »

Trying to manual install xi 2011r1.5 onto a fresh 64bit CentOS 5.6 server. The only thing done on this server before trying to complete this install was yum update to get caught up since ISO build time.

I am using a proxy. I am configuring it with no_proxy to bypass the local file retrieval, which works OK except for this particular file that causes the installer to bomb out. I've tried removing all nagios files, rebooting, and trying to perform the fullinstall again. Always fails out at the same point.

Anything I can try to get past this?

I have the following ending block of lines of the fullinstall script spitting out the code block below that I cut back to postgres restarting just to show the installer context. I've also attached the full install.log below...

Code: Select all

Restarting Postgres...
Stopping postgresql service:                               [  OK  ]
Starting postgresql service:                               [  OK  ]
Sleeping for a few seconds (please wait)...
Creating database structure...
Database schema created successfully.
Loading data into database...
Data inserted into database successfully.
Nagios xi PostgresQL Database Initialized OK.
Nagios xi base files installed OK
Crontabs installed OK
Daemons configured to start OK
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
Found config files to import - continuing...
/tmp/nagiosxi/nagiosxi/basedir/scripts /tmp/nagiosxi
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.loginIMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
    [0] => commands.cfg
    [1] => contacts.cfg
    [2] => localhost.cfg
    [3] => nagiosadmin.cfg
    [4] => templates.cfg
    [5] => timeperiods.cfg
    [6] => xicommands.cfg
    [7] => xiobjects.cfg
    [8] => xitemplates.cfg
    [9] => xiwzardtemplates.cfg
)
IMPORTING /usr/local/nagios/etc/import/commands.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/commands.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/contacts.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/contacts.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/localhost.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/localhost.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/nagiosadmin.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/nagiosadmin.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/templates.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/templates.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/timeperiods.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/timeperiods.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/xicommands.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/xicommands.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/xiobjects.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/xiobjects.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/xitemplates.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/xitemplates.cfg' -O nagiosql.import.monitoring
IMPORTING /usr/local/nagios/etc/import/xiwzardtemplates.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/xiwzardtemplates.cfg' -O nagiosql.import.monitoring
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.loginURL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeAdditional=Go' -O nagiosql.export.additional
OUTPUT:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
   Error processing object config files!


***> One or more problems was encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.
RET: 254
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /tmp/nagiosxi/nagiosxi/basedir/scripts
/tmp/nagiosxi/nagiosxi/basedir/scripts
NO NOM SNAPSHOT FOUND!
/tmp/nagiosxi
ERROR: NagiosQL import appears to have failed - exiting.  (Reason: Nagios Core configuration is invalid)
You do not have the required permissions to view the files attached to this post.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by agriffin »

Installing and using Nagios xi is not supported behind a proxy, but there are some things you can try to make it work anyway. See http://support.nagios.com/wiki/index.ph ... th_Proxies
iamfromit
Posts: 4
Joined: Thu Jun 30, 2011 12:34 pm

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by iamfromit »

Thanks for trying to help.

I read through the proxy suggestions, and have used the no_proxy setting to indicate what to bypass the proxy for. I can see that the http requests are being made directly to the localhost, and not through the proxy as in the below snippet. I would expect retrieval problems if I was being proxied, but I'm not. It is also not possible for an enterprise customer to put a production, internal, trusted server with access to many hosts across the site and globally on the internet just to install some software. If that is an expected level of assumed risk for me to install Nagios xi, I'll just walk away now and leave it alone until I can contribute a proxy-aware install wrapper back to the project.

Code: Select all

URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2011-06-30 15:25:34--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `nagiosql.export.monitoring'

    [ <=>                                                                        ] 0           --.-K/s   in 0s

2011-06-30 15:25:34 (0.00 B/s) - `nagiosql.export.monitoring' saved [0/0]
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by agriffin »

Below the section on setting the no_proxy variable there are some instructions on setting php-pear to use a proxy. Did you try those too?
Here is a proxy install solution reported by forum user TSCAdmin:

1. Before running any installation script install php-pear package manually

2. Set proxy for PHP Pear

Code: Select all

pear config-set http_proxy 'http://example.com:8080'
3. Run Nagios installation scripts sequentially

4. Unset system proxy before running E-importnagiosql script
Please note that you would not run the fullinstall script for this. You would run each installation step manually (0-yum, 1-prereqs, 2-usersgroups... F-startdaemons, Z-webroot).
Jackson
Posts: 3
Joined: Tue Jul 05, 2011 10:35 am

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by Jackson »

installing on ver 6 Redhat Enterprise x64, database steps never complete, unknown problems.
The amateur will spend hours trying to change postgre/mysql passwords assuming that the error in the logs makes any sense at all.
It's a PITA for amateurs and those who step outside the package manager. FAIL! Can't install, and I can't understand why the preferred platform would be 32 bit.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by mguthrie »

RHEL 6 installation is not currently supported by the install scripts. This will be available in our next point release. I suggest reading through the manual installation documentation to avoid future problems.
http://library.nagios.com/library/produ ... -nagios-xi
Jackson
Posts: 3
Joined: Tue Jul 05, 2011 10:35 am

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by Jackson »

Installs fine on a "clean" install of CentOS 5.6, about 30 minutes to monitor 8 nodes. The experience reminded me of another ground-like NMS system that infuriated me, because, it started pushing requirements for what the OS "needed" to be, and took over the package manager from another vendor, whom we've already paid for their licenses. In other words, immediate convenience meant immediate loss of a few others. In an evironment where Config Management / Security matters xi completely destroys the package manager's relative value on that host system. I guess this would be another reason to consider the virtual kit.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by mguthrie »

Yeah, we've had discussion on this end about an offline installer package, but so far this hasn't been developed. Because of the amount of packages that are used by nagios and the large amount of subcomponents, we have to maintain some level of prerequisites on the OS in order to maintain an adequate level of technical support.
iamfromit
Posts: 4
Joined: Thu Jun 30, 2011 12:34 pm

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by iamfromit »

I'm not sure where EL 6 issues piggy backed in here, the version I'm working with is 5.6 .

I've just finished re-installing BASE onto a fresh x64 box on my own instead of having someone else do it. I'll report progress with the 2011R1.5 install shortly...
iamfromit
Posts: 4
Joined: Thu Jun 30, 2011 12:34 pm

Re: xi 2011r1.5 Install failure on CentOS 5.6 x86_64

Post by iamfromit »

Completely re-installing the OS, setting up the /etc/wgetrc and /etc/yum.conf proxies, manually installing php-pear and manually setting the pear proxy, then running each script individually managed to get the install finished successfully.

Thanks agriffin for pointing out the need to run each of those scripts individually. It also is painfully apparent that there's no equivalent uninstaller to ./fullinstall, as that may have helped to put the system back to normal. This would have helped in that I could run each of the scripts manually instead of having to reinstall an OS and be reasonably confident that it was untainted.

Thanks again