Install fails at subcomponent install stage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ucop
Posts: 20
Joined: Wed May 22, 2013 5:55 pm

Install fails at subcomponent install stage

Post by ucop »

Hello,

installing Nagios XI on our newly updated RHEL server from scratch. The install fails with the following error:

/bin/sh: /var/www/html/products/xi/subcomponents/extraplugins/check_mysql_health-2.1/missing: No such file or directory
make: *** [aclocal.m4] Error 127
ERROR: Subcomponent 'extraplugins' installation failed - exiting.

interestingly, the directory /var/www/html/products is not there. Everything before it executes ok.

Please advise.
Thank you.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Install fails at subcomponent install stage

Post by abrist »

You may be missing automake. Try:

Code: Select all

yum install automake
Then try to rerun the install.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ucop
Posts: 20
Joined: Wed May 22, 2013 5:55 pm

Re: Install fails at subcomponent install stage

Post by ucop »

abrist wrote:You may be missing automake. Try:

Code: Select all

yum install automake
Then try to rerun the install.
Thanks for pointing this out. 'automake' was not installed and I installed it. Now I get the following error:

ERROR 1396 (HY000) at line 3: Operation CREATE USER failed for 'ndoutils'@'localhost'
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting

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

Re: Install fails at subcomponent install stage

Post by lmiltchev »

Can you upload the "/tmp/nagiosxi/install.log" file, so that we can take a look at it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ucop
Posts: 20
Joined: Wed May 22, 2013 5:55 pm

Re: Install fails at subcomponent install stage

Post by ucop »

Absolutely. The install.log file is attached here with the response here. The actual file has been renamed for the archiving purposes.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Install fails at subcomponent install stage

Post by abrist »

Did this server already have a mysql database?
Was the ./fullinstall run as root?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ucop
Posts: 20
Joined: Wed May 22, 2013 5:55 pm

Re: Install fails at subcomponent install stage

Post by ucop »

The server is a clean config, the only db it had was from a previous nagios install attempt. I had to clean up the install manually, because it failed to early to create /usr/local/nagiosxi/scripts directory. Perhaps I did not clean up the mysql db correctly? Before trying the install again I also removed the general yum packages and let the installer re-install them.

The install was run as root, of course.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Install fails at subcomponent install stage

Post by abrist »

Make sure the db has been removed as well. Also, remove the /tmp/nagiosxi directory and re-untar it.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ucop
Posts: 20
Joined: Wed May 22, 2013 5:55 pm

Re: Install fails at subcomponent install stage

Post by ucop »

I did as suggested and removed the /tmp/nagiosxi dir and re-untared it. The install keeps failing with the same error:

ERROR 1396 (HY000) at line 3: Operation CREATE USER failed for 'ndoutils'@'localhost'
ERROR: Subcomponent 'ndoutils' installation failed - exiting.

Perhaps I did not remove some bits of the db(s). Can you suggest the best procedure for manual db removal?

Thank you
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Install fails at subcomponent install stage

Post by abrist »

Do you have the newest install log file? if so, can you post it?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked