Nagios xi ndoutils error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cristhiannunez
Posts: 5
Joined: Wed Sep 07, 2011 2:24 pm

Nagios xi ndoutils error

Post by cristhiannunez »

Hi all,

Im trying to install nagios xi manually but for any reason im getting ndoutils error. Here is the error.
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.4b9/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o sockdebug sockdebug.c io.o utils.o -lm -lnsl
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.4b9/src'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/ndo2db
/tmp/nagiosxi/subcomponents/ndoutils
NDOUTILS-POST
NOTE: If prompted, enter the MySQL root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
NOTE: If prompted, enter the MySQL root password
ERROR: NDOUtils database install appears to have failed - exiting.
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting

Mysql database does not have password and if i connect to mysql, i cant see any nagios databases. Any idea ???.

Thanks in advance ....

Cristhian
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios xi ndoutils error

Post by lmiltchev »

This can happen if you tried to install Nagios XI on a system that already had mysql installed. Most probably you will have to uninstall the mysql and postgres completely, and then try to install Nagios XI again following the steps described in our documentation.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cristhiannunez
Posts: 5
Joined: Wed Sep 07, 2011 2:24 pm

Re: Nagios xi ndoutils error

Post by cristhiannunez »

Thanks for reply,

I uninstalled mysql from the server and run fullinstall script again. This is the output.

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Prerequisite program 'sed' found at /bin/sed
Prerequisite program 'ping' found at /bin/ping
Prerequisite program 'wget' found at /usr/bin/wget
Prerequisite program 'php' found at /usr/bin/php
Prerequisite program 'mrtg' found at /usr/bin/mrtg
Prerequisite program 'pear' found at /usr/bin/pear
Prerequisite program 'httpd' found at /usr/sbin/httpd
Prerequisite program 'psql' found at /usr/bin/psql
which: no mysql in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'mysql' not found!
which: no mysqladmin in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'mysqladmin' not found!
2 prerequisite(s) missing - exiting.
~
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios xi ndoutils error

Post by lmiltchev »

What is the distribution that you are using - CentOS or RHEL? If you are using RHEL, it has to be registered with the RHN before attempting installation, otherwise the installation will fail.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cristhiannunez
Posts: 5
Joined: Wed Sep 07, 2011 2:24 pm

Re: Nagios xi ndoutils error

Post by cristhiannunez »

Yes i know that. Im using centos and i dont know why does not install the packages. The first time that i ran the script, it downloaded the dependencies from repositories. Now it show that error after i uninstalled mysql.

Any advice ??

Thanks
cristhiannunez
Posts: 5
Joined: Wed Sep 07, 2011 2:24 pm

Re: Nagios xi ndoutils error

Post by cristhiannunez »

I made a new installation. I have a "clean system" and i get the same errors.

warning: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
error: Failed dependencies:
/usr/bin/pear is needed by php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
./1-prereqs: line 39: pear: command not found
Prerequisite program 'sed' found at /bin/sed
Prerequisite program 'ping' found at /bin/ping
Prerequisite program 'wget' found at /usr/bin/wget
which: no php in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'php' not found!
which: no mrtg in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'mrtg' not found!
which: no pear in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'pear' not found!
Prerequisite program 'httpd' found at /usr/sbin/httpd
which: no psql in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'psql' not found!
which: no mysql in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'mysql' not found!
which: no mysqladmin in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
ERROR: Prerequisite program 'mysqladmin' not found!
6 prerequisite(s) missing - exiting.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios xi ndoutils error

Post by nscott »

What does the command `yum repolist` give you?
Nicholas Scott
Former Nagios employee
cristhiannunez
Posts: 5
Joined: Wed Sep 07, 2011 2:24 pm

Re: Nagios xi ndoutils error

Post by cristhiannunez »

This is the output

[root@centos ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.secrel.com.br
* updates: centos.secrel.com.br
* addons: mirrors.greenmountainaccess.net
* extras: mirror.spro.net
repo id repo name status
addons CentOS-5 - Addons enabled : 0
base CentOS-5 - Base enabled : 2,683
extras CentOS-5 - Extras enabled : 327
updates CentOS-5 - Updates enabled : 614
repolist: 3,624
[root@centos ~]#
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios xi ndoutils error

Post by nscott »

That is incredibly odd that its not adding the EPEL and RPMForge repos for you. It should definitely install those or fail if you're using the ./fullinstall script.

Try adding them manually:

EPEL - If CentOS 6:

wget http://download.fedoraproject.org/pub/e ... noarch.rpm
rpm -Uvh epel-release-*.rpm

EPEL - If CentOS 5:

wget http://download.fedoraproject.org/pub/e ... noarch.rpm
rpm -Uvh epel-release-*.rpm

RPMForge needs a little more info, this site is great:

http://wiki.centos.org/AdditionalResour ... s/RPMForge

Its pretty quick to do and that looks like thats what the problem is.
Nicholas Scott
Former Nagios employee
jbmaliwat
Posts: 64
Joined: Fri Apr 15, 2011 12:21 am

Re: Nagios xi ndoutils error

Post by jbmaliwat »

Can I help?

I've already encountered this problem/error. What I did is I created a local yum repository and try to install all the pre requisite using yum.
After I completely installed all the pre requisite. I run the script of fullinstall and it does not encounter any error.

Thank you.

John Benedict Maliwat
Junior Technical Support Engineer
Manila, Philippines
Locked