Page 1 of 3

nagiosxi installation problem

Posted: Mon Feb 21, 2011 12:21 pm
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?

Re: nagiosxi installation problem

Posted: Mon Feb 21, 2011 1:29 pm
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?

Re: nagiosxi installation problem

Posted: Tue Feb 22, 2011 9:54 am
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

Re: nagiosxi installation problem

Posted: Tue Feb 22, 2011 11:07 am
by rdedon
Just to check, this is a registered RHEL correct?

Code: Select all

rhn_register

Re: nagiosxi installation problem

Posted: Wed Feb 23, 2011 9:37 am
by adarko
Yes..

Re: nagiosxi installation problem

Posted: Wed Feb 23, 2011 10:08 am
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

Re: nagiosxi installation problem

Posted: Wed Feb 23, 2011 10:32 am
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.

Re: nagiosxi installation problem

Posted: Wed Feb 23, 2011 10:38 am
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

Re: nagiosxi installation problem

Posted: Wed Feb 23, 2011 11:48 am
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

Re: nagiosxi installation problem

Posted: Wed Feb 23, 2011 12:06 pm
by adarko
the password had always been nagiosxi ...i did not change it