Increase NRPE Buffer Size

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Increase NRPE Buffer Size

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Increase NRPE Buffer Size

Post 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.
Former Nagios employee
https://www.mcapra.com/
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Increase NRPE Buffer Size

Post by optionstechnology »

Thanks

This can be closed
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Increase NRPE Buffer Size

Post 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!
Locked