Installing on machine with no network connection

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mcrites
Posts: 3
Joined: Tue Aug 02, 2011 6:38 am

Installing on machine with no network connection

Post by mcrites »

I am having problems installing nagiosxi on a non-internet connected virtual machine. The VM runs on ESX running CentOS5.6. I installed the dependencies manually and executed touch installed.yum to get past the first script.

Everything installs, but on E-importnagiosql I get the error "Unable to login to NagiosQL on 'localhost' - exiting. If you have a proxy configured, this maybe be the cause of the problem."

The passwords configured for mysql and postgresql are set to the default password: nagiosxi for the root account on mysql and nagiosxi on postgresql.

Any ideas on what the problem may be? If I connect to "http://ip address of host/nagiosxi", the message I get is "DB Connect Error [nagiosxi]: Database connection failed". This seems to point to a password is not being set correctly. This is a new install.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Installing on machine with no network connection

Post by nscott »

Next step would be to check these steps if you haven't already:

http://support.nagios.com/wiki/index.ph ... _failed.22

Then, if those don't work, can you connect to the databases manually:

Code: Select all

psql nagiosxi nagiosxi
mysql -unagiosql -pn@gweb
mysql -undoutils -pn@gweb
psql -u
    -> User name: nagiosxi
    -> Password: n@gweb
You should be able to connect using all of these. Once you've established what the proper logins for these are, verify that /usr/local/nagiosxi/html/config.inc.php has the proper settings for your databases.
Nicholas Scott
Former Nagios employee
mcrites
Posts: 3
Joined: Tue Aug 02, 2011 6:38 am

Re: Installing on machine with no network connection

Post by mcrites »

nscott wrote:Next step would be to check these steps if you haven't already:

http://support.nagios.com/wiki/index.ph ... _failed.22

Then, if those don't work, can you connect to the databases manually:

Code: Select all

psql nagiosxi nagiosxi
mysql -unagiosql -pn@gweb
mysql -undoutils -pn@gweb
psql -u
    -> User name: nagiosxi
    -> Password: n@gweb
You should be able to connect using all of these. Once you've established what the proper logins for these are, verify that /usr/local/nagiosxi/html/config.inc.php has the proper settings for your databases.
I am able to login with all those commands to access the mysql and psql applications. However I am getting the message:

Code: Select all

grep nagiosxi/basedir/scripts/nagiosql.login: No Such file or directory
ERROR: Unable to login to NagiosQL on 'localhost' - exiting. If you have a proxy configured, this may be the cause of the problem.
I have to restart httpd and postgresql to get access the nagiosxi page. When I try to navigate to the server ip/nagiosxi I still get the message "DB Connect Error [nagiosxi]: Database connection failed."

I put an "echo $PATH" in the service script and all the sbin directories are listed as in the wiki page you listed.

It seems like something with nagiosql isn't being configured correctly.

Any ideas?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Installing on machine with no network connection

Post by mguthrie »

We should probably note before we go further that we don't currently offer full support for an installation without a network connection. We don't have the procedure documented as of yet, but we do plan to eventually have an offline installer.

Our current best recommendation for an offline installation is actually to use our pre-installed virtual machine. The time saved in using that would probably be enormous. Would that work in your environment?
mcrites
Posts: 3
Joined: Tue Aug 02, 2011 6:38 am

Re: Installing on machine with no network connection

Post by mcrites »

I will try it out since you don't support offline installs.
Locked