PSA: My experience installing NagiosXI on Centos 6 x86_64
Posted: Tue Jul 26, 2011 12:31 pm
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:
And:
Also:
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!
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!
Code: Select all
Cannot open cookies file ânagiosql.cookiesâ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?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!