i think this is where your issue lies. https://stackoverflow.com/questions/264 ... d-when-sta[root@localhost mariadb]# tail mariadb.log
171013 16:29:33 InnoDB: remove old data files which contain your precious data!
171013 16:29:33 [ERROR] Plugin 'InnoDB' init function returned error.
171013 16:29:33 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
171013 16:29:33 [Note] Plugin 'FEEDBACK' is disabled.
171013 16:29:33 [ERROR] Unknown/unsupported storage engine: InnoDB
171013 16:29:33 [ERROR] Aborting
171013 16:29:33 [Note] /usr/libexec/mysqld: Shutdown complete
171013 16:29:33 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Recurring Database Connection Error
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: Recurring Database Connection Error
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Recurring Database Connection Error
Thanks, @tacolover101.
@venturegardengroup, Go ahead and increase the InnoDB buffer size:
After that restart your maraDB with
Also restart nagios with and
If that doesn't solve the issue please upload your system profile. You can generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44
@venturegardengroup, Go ahead and increase the InnoDB buffer size:
Code: Select all
/etc/mysql/my.cnf:
or the path could be
/etc/my.cnf
change this line
innodb_buffer_pool_size = 10MCode: Select all
service mariadb restartCode: Select all
service nagios restartCode: Select all
service httpd restartThat should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
venturegardengroup
- Posts: 62
- Joined: Tue Jun 28, 2016 10:11 am
Re: Recurring Database Connection Error
Hello npolovenko,
Please find attached the outputs I got from following the instructions you laid out.
Regards,
Please find attached the outputs I got from following the instructions you laid out.
Regards,
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Recurring Database Connection Error
@venturegardengroup, Can you try running the script as a root user:
Code: Select all
mkdir /usr/local/nagiosxi/var/components/profile/
cd /usr/local/nagiosxi/html/includes/components/profile/
sudo ./getprofile.shAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
venturegardengroup
- Posts: 62
- Joined: Tue Jun 28, 2016 10:11 am
Re: Recurring Database Connection Error
Hello npolovenko,
Please find attached. Looking forward to your feedback. Thanks.
Please find attached. Looking forward to your feedback. Thanks.
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Recurring Database Connection Error
@venturegardengroup,
Please remove this two files:
Also, lets try to run repair_databses as sudo:
Please run this command to check the storage space on the root partition.
Finally, please send us the contents of your my.cnf file located at:
Please remove this two files:
Code: Select all
rm /var/lib/mysql/ib_logfile0
rm /var/lib/mysql/ib_logfile1
after that:
service mysqld restartCode: Select all
cd /usr/local/nagiosxi/scripts
sudo ./repair_databases.sh
Code: Select all
df -hCode: Select all
/etc/my.cnfAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
venturegardengroup
- Posts: 62
- Joined: Tue Jun 28, 2016 10:11 am
Re: Recurring Database Connection Error
Hello npolovenko,
Thanks for the update. I have attached the outputs from the steps you suggested.
Regards,
Thanks for the update. I have attached the outputs from the steps you suggested.
Regards,
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Recurring Database Connection Error
@venturegardengroup , Please remove ibdata1 file from /var/lib/mysql/
After that please run:
Let us know whether both services started.
After that please run:
Code: Select all
service httpd restart
service mariadb restartAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
venturegardengroup
- Posts: 62
- Joined: Tue Jun 28, 2016 10:11 am
Re: Recurring Database Connection Error
Hello npolovenko,
Both services failed to start. See outputs attached.
Both services failed to start. See outputs attached.
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Recurring Database Connection Error
@venturegardengroup, Ok, so the biggest problem we have is broken MySQL. Without MYSQL running Nagios will not work. We'd need to see more related log files. Please run the commands below and then upload info1, info2 and info3 files here.
Code: Select all
yum list installed >/tmp/info1.txt
cat /etc/my.cnf.d/* >>/tmp/info2.txt
tail -100 /var/log/mariadb/mariadb.log >>/tmp/info3.txtAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.