Install problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cmandelblit
Posts: 7
Joined: Tue Aug 27, 2013 10:07 am

Install problems

Post by cmandelblit »

Testing out nagiosxi. Install is not quite correct. Get errors on fullinstall script of
Installing Nagios XI base files...
Creating product directory...
Adding password for user nagiosadmin
Reloading httpd:
Building latest perms binary...
Checking PostgresQL status...
PostgresQL running - continuing...
Creating role and database...
ERROR: role "nagiosxi" already exists
ERROR: database "nagiosxi" already exists
ERROR: Nagios XI database was not setup properly - exiting.
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './B-installxi'

The web server is up ok and I can log in. Kept trying to delete all the installed.* files and re-run fullinstall or even run the scripts singlely like init-xidb. Can't quite figure out what to do. If we can get it working we will be buying a copy.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Install problems

Post by abrist »

The full install is not completing because the installation has failed late in the install. Your best bet would be to wipe the box and start over with a fresh centos/rhel minimal install.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install problems

Post by lmiltchev »

ERROR: role "nagiosxi" already exists
ERROR: database "nagiosxi" already exists
Were you installing Nagios XI on a "clean" system?
Be sure to check out our Knowledgebase for helpful articles and solutions!
cmandelblit
Posts: 7
Joined: Tue Aug 27, 2013 10:07 am

Re: Install problems

Post by cmandelblit »

Yes. It was a vmware we set up for just this testing.
Red Hat Enterprise Linux Server release 6.3 (Santiago)

We can uninstall and re-install. I did run into som user issues because we normally have a shared login servers (VAS) but we should be ok with that. /etc/passwd and /etc/groups showing additions.
cmandelblit
Posts: 7
Joined: Tue Aug 27, 2013 10:07 am

Re: Install problems

Post by cmandelblit »

I saw an uninstall-xi.sh

or are we really talking about a new vmware? I am just nervous that if it is that senstive what do I do in production?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install problems

Post by lmiltchev »

Important: Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, "clean" system. Attempting to install Nagios XI on a pre-existing system with other applications already installed can cause the Nagios XI installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way that negatively affects other applications, and previously installed applications to be automatically upgraded or removed. While installing XI on a system with other applications is possible, it is not recommended due to the possible interactions and complexity of multiple components that are required for Nagios XI to function. If you choose to ignore these warnings, you do so at your own risk.

Internet access is required for installation and upgrades!
If you had a previous install of Nagios XI on this box, you can probably run the "uninstall_xi.sh" script, located in "/usr/local/nagiosxi/scripts". However, I would recommend installing XI on a clean system (minimal install).
Be sure to check out our Knowledgebase for helpful articles and solutions!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Install problems

Post by abrist »

Really, the fragility is the install script as there are a large number of things it does. There are points in the install process, that if the install fails, makes it rather hard to undo. Mostly this is in reference to the database configuration (where yours has an issue). We could walk you through how to clean up this instance for anther run at the install but in general, as this is a new install, it is much, much faster to just re-provision and reinstall.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked