PSA: My experience installing NagiosXI on Centos 6 x86_64

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chris.trotter
Posts: 36
Joined: Tue Jul 26, 2011 12:11 pm

PSA: My experience installing NagiosXI on Centos 6 x86_64

Post by chris.trotter »

Everyone, just wanted to post my results for the manual installation of NagiosXI on a Centos 6 x86_64 VM (ESXi 4.1). No VMware tools was installed, so the fact that it's a VM should be irrelevant.

I installed Centos 6 as a 'basic server', pretty much everything else default. One note is that you should have a valid DNS entry for the server on your local DNS server, otherwise the install will set '127.0.0.1' or 'localhost' as the address (I think during HTTPD configuration).

First road block was the RPMforge issue. There are other forum posts on that.

Next issue was a missing package that manifested itself as not being able to create directories, files missing, etc. This went on for most of the subcomponents. After I'd gotten past the subcomponent script, I was erroring out on the E-importnagiosql script.

Error code:

Code: Select all

Running './E-importnagiosql'...
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
        DB Connect Error [nagiosxi]: Database connection failed
ERROR CONNECTING TO DATABASES!
And:

Code: Select all

Cannot open cookies file ânagiosql.cookiesâ
Also:

Code: Select all

[root@test-nagios-01 nagiosxi]# ./E-importnagiosql
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
ERROR: No files to import - exiting.  Were Nagios Core and NagiosQL installed?
All in all, many hours of poking around.

Here is how you avoid this pain:

1. Fresh install (basic server) of Centos 6 x86_64.
1a. Ensure DNS is configured correctly, local hostname set up, etc etc.
1b. Download NagiosXI into the /tmp directory.
2. Configure repo properly as per instructions here: http://support.nagios.com/forum/viewtop ... f=6&t=2560
2a. Don't forget the step to touch the installed.yum file.
3. yum install php-pear postgresql-server mrtg php mysql-server mysqladmin httpd gcc rrdtool perl-RRD-Simple.noarch openssl-devel openssh
3a. Not sure if the openssh package is necessary.
4. ./fullinstall

If you are prompted for the mysql password, it is: nagiosxi

In summary, seems that there are just a bunch of prerequisite packages that are not installed at the beginning of the script, perhaps due to the changed repo config.

Good luck!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: PSA: My experience installing NagiosXI on Centos 6 x86_6

Post by agriffin »

Thanks for the contribution! Just FYI, this method of installation is not officially supported or recommended. Nagios XI will officially support CentOS 6 & RHEL 6 soon though. We have working installation scripts internally that are just going through the final phases of testing & polish.
chris.trotter
Posts: 36
Joined: Tue Jul 26, 2011 12:11 pm

Re: PSA: My experience installing NagiosXI on Centos 6 x86_6

Post by chris.trotter »

No problem. With Centos/RHEL 6 support will you also be supporting x86_64? As of right now it appears you only support 32-bit Centos.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: PSA: My experience installing NagiosXI on Centos 6 x86_6

Post by agriffin »

We do currently support 64-bit CentOS 5 & RHEL5, and we will continue to do so with version 6 of both. If you have issues with 64-bit we would like to know about it!
Locked