connection loss of Nagios XI with mysql

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: connection loss of Nagios XI with mysql

Post by ednaldojta »

Below is the output of the commands.
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: connection loss of Nagios XI with mysql

Post by tgriep »

Thanks for the Screen captures. Everything looks good in them.
One thing that could cause this issue is if the check that you are running are returning data that it too large for the MYSQL table.
To fix this, you need to run the following commands on the XI server as root.

Code: Select all

echo "use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output varchar(65535) not null;alter table nagios_servicestatus modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
echo "use nagios;alter table nagios_hoststatus modify output varchar(65535) not null;alter table nagios_hoststatus modify long_output varchar(65535) not null;alter table nagios_hoststatus modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
echo "use nagios;alter table nagios_servicechecks modify output varchar(65535) not null;alter table nagios_servicechecks modify long_output varchar(65535) not null;alter table nagios_servicechecks modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
echo "use nagios;alter table nagios_hostchecks modify output varchar(65535) not null;alter table nagios_hostchecks modify long_output varchar(65535) not null;alter table nagios_hostchecks modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
This will increase the size of all of the tables in MYSQL large enough for your checks to run without error.
Try it out and see if that resolves the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: connection loss of Nagios XI with mysql

Post by ednaldojta »

This causes some "collateral effect" in my bank?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: connection loss of Nagios XI with mysql

Post by rkennedy »

ednaldojta wrote:This causes some "collateral effect" in my bank?
This will cause the fields to expand in SQL to handle a large output from your checks. Any checks moving forward will see the affect.

What exactly are you asking?
Former Nagios Employee
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: connection loss of Nagios XI with mysql

Post by ednaldojta »

If I perform this procedure, there was an effect that can ocosionar service interruption?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: connection loss of Nagios XI with mysql

Post by rkennedy »

Nope, it will just expand the parameters in SQL. No service interruption.
Former Nagios Employee
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: connection loss of Nagios XI with mysql

Post by ednaldojta »

Is there any root default password in mysql, and standard User?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: connection loss of Nagios XI with mysql

Post by scottwilkerson »

ednaldojta wrote:Is there any root default password in mysql, and standard User?
On a default Nagios XI system:
User: root
Pass: nagiosxi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: connection loss of Nagios XI with mysql

Post by ednaldojta »

Performed procedures, is now wait if the problem will occur!
: D
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: connection loss of Nagios XI with mysql

Post by rkennedy »

Sounds good - let us know how it goes!
Former Nagios Employee
Locked