some troubles performing initial install of nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
windoverwater
Posts: 1
Joined: Mon Oct 20, 2014 3:35 pm

some troubles performing initial install of nagios XI

Post by windoverwater »

Hi Support,

This is a newbie question regarding the attempt to run ./fullinstall on a base from scratch
centos6.5 VM system. The first time through the install stopped in stage 3:

################
[...]
Complete!
Fixing php-mcrypt bug...
Prerequisites installed OK
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
Users and groups added OK
RESULT=0
Running './3-dbservers'...
PostgresQL installed OK - continuing...
Initializing PostgresQL...
Starting PostgresQL...
Starting postgresql service: [ OK ]
Copying PostgresQL trust-based authentication configuration...
Restarting PostgresQL...
Stopping postgresql service: [FAILED]
Starting postgresql service: [ OK ]
ERROR: Could not restart PostgresQL - 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: './3-dbservers'
################

After this failure I re-ran the fullinstall again and it went past this to
stage B:


################
[...]
MRTG-POST
MRTG installed OK
Subcomponent 'mrtg' installed OK
Subcomponents installed OK
RESULT=0
Running './B-installxi'...
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...
could not change directory to "/home/sandy/nagiosxi"
CREATE ROLE
could not change directory to "/home/sandy/nagiosxi"
CREATE DATABASE
User 'nagiosxi' created successfully.
Database 'nagiosxi' created successfully.
Restarting Postgres...
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
Sleeping for a few seconds (please wait)...
Creating database structure...
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
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'
################

However, at this point when fullinstall is run again, it is stuck on this stage
B error.

Any suggestions regarding how to proceed? Is the first failure ok or is there
something that is broken from that?

Thanks much in advance!
-sandy
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: some troubles performing initial install of nagios XI

Post by slansing »

It does not look like it was ran from a scratch system, the nagios users and groups were already present and it looks like postgres may have been as well. Any chance you can download the most recent version of XI and install it on a fresh, minimal centos installation? No special company images, or anything additional added?
Locked