Page 1 of 2
NagiosXI not starting
Posted: Fri Jan 29, 2021 12:13 pm
by Aldo Lanfranconi
Hello, Our NagiosXI is showing the following error when try to access login page:
"Databse Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh"
I did try to execute the script, but on une of the last steps got an error --> "starting mysqld: ´[FAILED]"
also try to reboot.
Please Help
Re: NagiosXI not starting
Posted: Fri Jan 29, 2021 3:35 pm
by dchurch
I'll assume you have root access to the machine running Nagios XI?
Can you please paste the full output from the following 2 commands (run as root):
Code: Select all
service mariadb status
service mysql status
Re: NagiosXI not starting
Posted: Tue Feb 02, 2021 9:01 am
by Aldo Lanfranconi
Hi, yes, I have root access from the console.
I got "unrecognized service" when running both commands
Re: NagiosXI not starting
Posted: Tue Feb 02, 2021 3:17 pm
by dchurch
Are you using an offloaded database?
Can you log into that server and run the command to repair the database?:
Code: Select all
mysqlcheck -u[database user] -p[database password] --repair --all-databases
Re: NagiosXI not starting
Posted: Wed Feb 03, 2021 6:21 am
by Aldo Lanfranconi
Are you using an offloaded database?
No, I´m not.
Re: NagiosXI not starting
Posted: Wed Feb 03, 2021 10:09 am
by dchurch
What Linux distro are you running? How did you install Nagios XI (download an OVA, install via yum, install via manual install)?
Re: NagiosXI not starting
Posted: Wed Feb 03, 2021 12:13 pm
by Aldo Lanfranconi
Hello, I did install froma an OVA to VMware
Linux version 2.6.36-643.1.1.e16.x86_64
CentOS 6.8 (final)
Sin título.jpg
Anotación.png
Re: NagiosXI not starting
Posted: Wed Feb 03, 2021 1:16 pm
by dchurch
Run the following command as root and post the entire output:
Code: Select all
/etc/init.d/mysqld stop
/etc/init.d/mysqld start
Re: NagiosXI not starting
Posted: Wed Feb 03, 2021 2:01 pm
by Aldo Lanfranconi
see attached capture
Anotación 2021-02-03 155304.png
Re: NagiosXI not starting
Posted: Wed Feb 03, 2021 3:49 pm
by dchurch
What's the output from the following commands:
Code: Select all
/etc/init.d/mysqld start
tail -50 /var/log/messages