some troubles performing initial install of nagios XI
Posted: Tue Oct 21, 2014 9:39 am
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
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