Mysql root password, not accepting nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sebastian_anthony
Posts: 16
Joined: Tue Aug 18, 2015 11:19 pm

Mysql root password, not accepting nagiosxi

Post by sebastian_anthony »

I'm running Nagios XI fullinstall but failed at 30dbservers script. Installation managed to start postgresql and mysql , but asking for mysql root password. I entered 'nagiosxi' (without quotes) but it is not accepting. Anyone faced this issue? Please help.

Regards
Sebastian
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Mysql root password, not accepting nagiosxi

Post by tmcdonald »

Was this system used for anything before? The existence of a database prior to the fullinstall could produce this behavior. What OS and version is this on?
Former Nagios employee
sebastian_anthony
Posts: 16
Joined: Tue Aug 18, 2015 11:19 pm

Re: Mysql root password, not accepting nagiosxi

Post by sebastian_anthony »

This is a new vm with RHEL 6.7. Nagios XI installation doing first time.
System was giving RHN registration error. So we removed lines from 30 to 45 in 0-repos script. After that ran the installation and it downloaded and installed all packages from configured repos. This is the only change we did.
sebastian_anthony
Posts: 16
Joined: Tue Aug 18, 2015 11:19 pm

Re: Mysql root password, not accepting nagiosxi

Post by sebastian_anthony »

Error as follows

Repos already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run your package manager's update command
Users/groups already configured - skipping.
PostgresQL installed OK - continuing...
Initializing PostgresQL...
Starting PostgresQL...
Starting postgresql service: [ OK ]
Copying PostgresQL trust-based authentication configuration...
Restarting PostgresQL...
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
Checking PostgresQL status...
PostgresQL initialized OK
MySQL installed OK - continuing...
Starting MySQL...
Starting mysqld: [ OK ]
Initializing MySQL...
Enter the MySQL root password to continue...
MySQL Root Password: Password failed.
Enter the MySQL root password to continue...
MySQL Root Password: Password failed.
Enter the MySQL root password to continue...
MySQL Root Password: Password failed.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Mysql root password, not accepting nagiosxi

Post by hsmith »

Do you have a valid RedHat subscription for the machine? Commenting lines out of the install can cause some problems, such as missing dependencies, which could be happening here. We generally don't support installations where the install script was modified. If you don't have a RedHat subscription, you should be using a minimal install of CentOS 6/7 (preferably 6 at this time).
Former Nagios Employee.
me.
sebastian_anthony
Posts: 16
Joined: Tue Aug 18, 2015 11:19 pm

Re: Mysql root password, not accepting nagiosxi

Post by sebastian_anthony »

We uninstalled mysql and ran fullinstall again. NagiosXI installed successfully :) .
After logging in we can see one service is not running - Performance Grapher (NPCD). Trying to bring it up.
sebastian_anthony
Posts: 16
Joined: Tue Aug 18, 2015 11:19 pm

Re: Mysql root password, not accepting nagiosxi

Post by sebastian_anthony »

Perfromance Grapher error was due to incorrect permissions on npcd.pid file. Changed permissions and now it is working.

Thanks all for your inputs ....

Reagrds
Sebastian
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Mysql root password, not accepting nagiosxi

Post by hsmith »

Happy to hear it is working. I have another user running into a similar issue, hopefully this sheds some light on what could be happening.

I am going to lock this thread. Please feel free to post if you run into any more weird stuff!
Former Nagios Employee.
me.
Locked