Nagios install error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jvmagic
Posts: 13
Joined: Tue Jul 16, 2013 5:12 pm

Nagios install error

Post by jvmagic »

Hi, I receive the following error after running ./fullinstall:

NOTE: If prompted, enter the MySQL root password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - 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: './A-subcomponents'
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios install error

Post by slansing »

What is the output when you run:

Code: Select all

/tmp/nagiosxi/subcomponents/ndoutils/install
jvmagic
Posts: 13
Joined: Tue Jul 16, 2013 5:12 pm

Re: Nagios install error

Post by jvmagic »

]# /tmp/nagiosxi/subcomponents/ndoutils/install
/tmp/nagiosxi/subcomponents/ndoutils/install: line 3: ../../xi-sys.cfg: No such file or directory
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios install error

Post by slansing »

Apologies that would not have worked, can you send us the output of:

Code: Select all

cat /tmp/nagiosxi/xi-sys.cfg
Did you have a previous nagios install on this server? Did you ever install mysql, or ndoutils?
jvmagic
Posts: 13
Joined: Tue Jul 16, 2013 5:12 pm

Re: Nagios install error

Post by jvmagic »

This is a new/clean install on this server.

I did install ndoutils (I think it)

wget sourceforge.net/projects/nagios/files/ndoutils-1.x

/tmp/nagiosxi/subcomponents/ndoutils/install

I did not install mysql which I assume I have to right?
cat /tmp/nagiosxi/xi-sys.cfg
cat /tmp/nagiosxi/xi-sys.cfg
apachegroup='apache'
apacheuser='apache'
chownbin='/bin/chown'
groupaddbin='/usr/sbin/groupadd'
groupdelbin='/usr/sbin/groupdel'
htpasswdbin='/usr/bin/htpasswd'
httpdconfdir='/etc/httpd/conf.d'
httpd='httpd'
mkdirbin='/bin/mkdir'
mrtgcfg='/etc/mrtg/mrtg.cfg'
mysqld='mysqld'
pgsqlrootpass='postgres'
pgsqlpass='nagiosxi'
nagioscmdgroup='nagcmd'
nagiosgroup='nagios'
nagiosuser='nagios'
nagioswebpwd='nagiosadmin'
nagioswebuser='nagiosadmin'
phpconfd='/etc/php.d'
phpini='/etc/php.ini'
proddir='/usr/local/nagiosxi'
useraddbin='/usr/sbin/useradd'
usermodbin='/usr/sbin/usermod'
userdelbin='/usr/sbin/userdel'
mysqlpass='nagiosxi'
xiver='2012r2.5'
distro='RedHatEnterpriseServer'
version='5.10'
ver='5'
architecture='x86_64'
dist='el5'
arch='x86_64'
php_extension_dir='/usr/lib64/php/modules'
jvmagic
Posts: 13
Joined: Tue Jul 16, 2013 5:12 pm

Re: Nagios install error

Post by jvmagic »

Is it considered multiple installs if I run ./fullinstall multiple times?
This last attempt of ./fullinstall came back with:

Subcomponent 'wkhtml' installed OK
Subcomponents installed OK
Installing Nagios XI base files...
Creating product directory...
Adding password for user nagiosadmin
Reloading httpd:
Building latest perms binary...
Checking PostgresQL status...
ERROR: PostgresQL not running - exiting.
ERROR: Nagios XI database was not setup properly - exiting.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios install error

Post by slansing »

Interesting, postgres must have stopped for some reason, the installation scripts should initialize it and it looks like they did. Can you try starting postgres and running the installation script again, you can run fullinstall multiple times without issue until it installs completely, there just seem to be some funky things going on with your system.
jvmagic
Posts: 13
Joined: Tue Jul 16, 2013 5:12 pm

Re: Nagios install error

Post by jvmagic »

Nagios XI Installation Complete!

You can access the Nagios XI web interface by visiting:
http://10.11.39.47/nagiosxi/


Thank You!!!
Locked