Re-occurring crash of the DB

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
laverdiereg
Posts: 3
Joined: Thu Sep 20, 2018 7:16 pm

Re-occurring crash of the DB

Post by laverdiereg »

Please let me know your findings
Last edited by tgriep on Mon Mar 02, 2020 4:24 pm, edited 1 time in total.
Reason: Profile removed and shared with the other Techs
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Re-occurring crash of the DB

Post by tgriep »

Open a root shell in the Nagios server and run the following commands. Get the /tmp/info.txt file and upload it to the forum post.

Code: Select all

mysql -u root -pnagiosxi -e "show global status like '%used_connections%'; show variables like 'max_connections';" >/tmp/info.txt
echo "SELECT table_schema as 'Database', table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC;" |mysql -t -u root -pnagiosxi >>/tmp/info.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
laverdiereg
Posts: 3
Joined: Thu Sep 20, 2018 7:16 pm

Re: Re-occurring crash of the DB

Post by laverdiereg »

Web front end is crashed again this morning

Attaching requested file
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Re-occurring crash of the DB

Post by tgriep »

Thanks for the file. Everything looks good in it.

Your server only has 2 Gig of memory assigned to it and if it gets full, the Linux Kernel will stop the processes that take the most memory and that is usually the MYSQL database. When that happens, it would cause corruption and you would see the issue you are having.

I suggest doubling the amount of Memory and CPU's assigned to the server and then repair the database.
Wait and see if the issues is resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
laverdiereg
Posts: 3
Joined: Thu Sep 20, 2018 7:16 pm

Re: Re-occurring crash of the DB

Post by laverdiereg »

Done... stay tuned. Thanks for your help
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Re-occurring crash of the DB

Post by tgriep »

Your welcome, hopefully this is it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked