connection loss of Nagios XI with mysql
-
ednaldojta
- Posts: 103
- Joined: Tue Apr 07, 2015 7:52 am
Re: connection loss of Nagios XI with mysql
Below is the output of the commands.
You do not have the required permissions to view the files attached to this post.
Re: connection loss of Nagios XI with mysql
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.
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.
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 -pnagiosxiTry 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
This causes some "collateral effect" in my bank?
Re: connection loss of Nagios XI with mysql
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.ednaldojta wrote:This causes some "collateral effect" in my bank?
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
If I perform this procedure, there was an effect that can ocosionar service interruption?
Re: connection loss of Nagios XI with mysql
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
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
On a default Nagios XI system:ednaldojta wrote:Is there any root default password in mysql, and standard User?
User: root
Pass: nagiosxi
-
ednaldojta
- Posts: 103
- Joined: Tue Apr 07, 2015 7:52 am
Re: connection loss of Nagios XI with mysql
Performed procedures, is now wait if the problem will occur!
: D
: D
Re: connection loss of Nagios XI with mysql
Sounds good - let us know how it goes!
Former Nagios Employee