Page 1 of 1
Nagios install error
Posted: Wed Nov 20, 2013 3:34 pm
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'
Re: Nagios install error
Posted: Wed Nov 20, 2013 3:44 pm
by slansing
What is the output when you run:
Code: Select all
/tmp/nagiosxi/subcomponents/ndoutils/install
Re: Nagios install error
Posted: Wed Nov 20, 2013 3:53 pm
by jvmagic
]# /tmp/nagiosxi/subcomponents/ndoutils/install
/tmp/nagiosxi/subcomponents/ndoutils/install: line 3: ../../xi-sys.cfg: No such file or directory
Re: Nagios install error
Posted: Wed Nov 20, 2013 4:58 pm
by slansing
Apologies that would not have worked, can you send us the output of:
Did you have a previous nagios install on this server? Did you ever install mysql, or ndoutils?
Re: Nagios install error
Posted: Wed Nov 20, 2013 5:11 pm
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'
Re: Nagios install error
Posted: Wed Nov 20, 2013 6:17 pm
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.
Re: Nagios install error
Posted: Thu Nov 21, 2013 11:55 am
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.
Re: Nagios install error
Posted: Thu Nov 21, 2013 4:28 pm
by jvmagic
Nagios XI Installation Complete!
You can access the Nagios XI web interface by visiting:
http://10.11.39.47/nagiosxi/
Thank You!!!