nagiosxi installation problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
adarko
Posts: 13
Joined: Tue Feb 15, 2011 12:11 pm

nagiosxi installation problem

Post by adarko »

i am in the process of installing the current nagiosxi version and run into these issues.


Step 12 and STEP A and STEP E, i am not sure if STEP A has any bearing on STEP E


./12-mrtg
cp: cannot create regular file `/etc/mrtg/mrtg.cfg': No such file or directory
chown: cannot access `/etc/mrtg/mrtg.cfg': No such file or directory
MRTG configured OK




./A-subcomponents
/home/nagiosxi/subcomponents/pnp
PNP-POST
cp: cannot stat `/usr/local/nagios/etc/pnp/rra.cfg-sample': No such file or directory
cp: cannot stat `/usr/local/nagios/etc/pnp/process_perfdata.cfg-sample': No such file or directory
cp: target `/usr/local/nagios/share/pnp/templates' is not a directory
cp: cannot create regular file `/usr/local/nagios/share/pnp/lang': No such file or directory
ERROR: PNP install appears to have failed - exiting. Missing file = /usr/local/nagios/bin/npcd
/home/nagiosxi/subcomponents
ERROR: Subcomponent 'pnp' installation failed - exiting.
/home/nagiosxi
Subcomponents installation failed - exiting



./E-importnagiosql

NOTE: If prompted, enter the MySQL root password
ERROR: Cannot connect to NagiosQL database - exiting. Were MySQL and NagiosQL installed?
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: nagiosxi installation problem

Post by rdedon »

In order to give you the best support possible, we ask that you submit your support requests with the following guidelines. These guidelines are intended to reduce resolution time to your issues.

For all support requests, we need to know:
  1. Linux Distribution and version?
  2. 32 or 64bit?
  3. VMware Image or Manual Install of XI?
  4. Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
  5. **If you are encountering multiple issues that may not be related, start a thread for each issue
For Installation Issues:
  • Above information
  • For Redhat installs, you need to be registered with the RHN (Redhat Network) in order to have full access to their repos. XI will not be able to install correctly without full repo access since several critical packages depend on this.
  • Any error output noticed during installation, and what scripts were being run when errors were noticed.
  • Verify that both mysql and postgresql are installed and running after the "3-dbservers" script. Send us the output from the following commands:

Code: Select all

service mysqld restart
service postgresql restart 
Also, are you attempting to install this by the ./fullinstall command or 0,1,2,3,etc?
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
adarko
Posts: 13
Joined: Tue Feb 15, 2011 12:11 pm

Re: nagiosxi installation problem

Post by adarko »

For all support requests, we need to know:
1. Linux Distribution and version? RHE5
2. 32 or 64bit? 64bit
3. VMware Image or Manual Install of XI? Manual Install of XI
4. Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? None
5. **If you are encountering multiple issues that may not be related, start a thread for each issue


topping MySQL: [ OK ]
Starting MySQL: [ OK ]


Stopping postgresql service:
[ OK ]
Starting postgresql service: [ OK ]



Well i spent more time on some of the failed issues and was able to work through a few. however i am surprised at the number of things i had to change to get this far. The importationsql script failes if db connection issues. i have added /sbin etc to my PATH and it still failes.

i am able to do start all services and databases per ./F-startdaemons


./F-startdaemons
Restarting Apache...
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Apache (httpd) started OK
Starting NDO2DB...
Starting ndo2db:Support for the specified database server is either not yet supported, or was not found on your system.
done.
NDOUtils (ndo2db) started OK
Starting Nagios Core...
Starting nagios: done.
Nagios Core (nagios) started OK
Starting Nagios XI...
Nagios XI (nagiosxi) started OK
Starting PNP Daemon...
NPCD already started
PNP (npcd) started OK
Daemons started OK
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: nagiosxi installation problem

Post by rdedon »

Just to check, this is a registered RHEL correct?

Code: Select all

rhn_register
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
adarko
Posts: 13
Joined: Tue Feb 15, 2011 12:11 pm

Re: nagiosxi installation problem

Post by adarko »

Yes..
adarko
Posts: 13
Joined: Tue Feb 15, 2011 12:11 pm

Re: nagiosxi installation problem

Post by adarko »

Note nagios core is fine. i am able to log on to nagios core.

the problem now seems to be around


DB Connect Error [nagiosxi]: Database connection failed
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: nagiosxi installation problem

Post by mguthrie »

Were the install scripts run on a "fresh" install of Redhat? Did you you have mysql installed with a root password defined prior to running the installation scripts? If so that would prevent mysql from being set up correctly.
adarko
Posts: 13
Joined: Tue Feb 15, 2011 12:11 pm

Re: nagiosxi installation problem

Post by adarko »

Yes the installation was done on fresh box, first run was terrible but i got around it. i dont think i had root password set for mysql but who knows when you try many things. logging on to the database is password issue right? so what should it be defualt and how can i change that
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: nagiosxi installation problem

Post by rdedon »

this should be helpful for you:
http://www.cyberciti.biz/faq/mysql-chan ... -password/
by default, the password for this will also be: nagiosxi
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
adarko
Posts: 13
Joined: Tue Feb 15, 2011 12:11 pm

Re: nagiosxi installation problem

Post by adarko »

the password had always been nagiosxi ...i did not change it
Locked