Page 1 of 1

Increase NRPE Buffer Size

Posted: Thu Dec 15, 2016 11:51 am
by optionstechnology
nagiosXI 5.3.2
Centos 7.2

I use the following commands to increase the nrpe buffer size-

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_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_servicechecks 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_hostchecks 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
However, I am now operating on a nagiosxi instance that stores the database on a seperate server- and when I try those commands I get 'Access Denied' even while using the root account.

I have a login to MariaDB but obviously the syntax of those commands above need to be changed...

Can you guys help?

Re: Increase NRPE Buffer Size

Posted: Thu Dec 15, 2016 12:35 pm
by mcapra
We do not support direct manipulation of the Nagios XI database. As a warning, altering tables that Nagios XI relies on can make your system un-supported in some cases.

Assuming the passwords are the same on the offloaded database, you will need to add the -h argument to your mysql call to include the remote server's hostname.

Code: Select all

 -h, --host=name     Connect to host.
You may also need to alter the credentials provided if the root password was changed.

Re: Increase NRPE Buffer Size

Posted: Fri Dec 16, 2016 10:18 am
by optionstechnology
Thanks

This can be closed

Re: Increase NRPE Buffer Size

Posted: Fri Dec 16, 2016 10:20 am
by dwhitfield
I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!