Page 1 of 1

Mysql root password, not accepting nagiosxi

Posted: Tue Aug 25, 2015 6:34 am
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

Re: Mysql root password, not accepting nagiosxi

Posted: Tue Aug 25, 2015 9:12 am
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?

Re: Mysql root password, not accepting nagiosxi

Posted: Tue Aug 25, 2015 9:19 am
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.

Re: Mysql root password, not accepting nagiosxi

Posted: Tue Aug 25, 2015 9:33 am
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.

Re: Mysql root password, not accepting nagiosxi

Posted: Tue Aug 25, 2015 10:41 am
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).

Re: Mysql root password, not accepting nagiosxi

Posted: Wed Aug 26, 2015 6:03 am
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.

Re: Mysql root password, not accepting nagiosxi

Posted: Wed Aug 26, 2015 7:12 am
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

Re: Mysql root password, not accepting nagiosxi

Posted: Wed Aug 26, 2015 9:20 am
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!