Page 1 of 1
Installing on machine with no network connection
Posted: Tue Aug 16, 2011 3:02 pm
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.
Re: Installing on machine with no network connection
Posted: Wed Aug 17, 2011 9:47 am
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.
Re: Installing on machine with no network connection
Posted: Wed Aug 17, 2011 12:46 pm
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?
Re: Installing on machine with no network connection
Posted: Wed Aug 17, 2011 1:19 pm
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?
Re: Installing on machine with no network connection
Posted: Wed Aug 17, 2011 1:35 pm
by mcrites
I will try it out since you don't support offline installs.