Page 1 of 1

Increase NRPE payload

Posted: Mon May 05, 2014 1:33 pm
by DonB
It appears that the Windows NSClient++ 0.4.2 has fixed the nrpe payload limitation of 1024 characters. I attempt to increase the payload size to 2048. But it doesn't appear to work. Do you happen to have an example on how to configure the nsclient++ and/or the NagiosXI server? My goal is to use the real-time eventlog monitor, which I do have working. But I would like not to truncate the message that is sent back to NagiosXI. I don't necessarily need to log the full message, but I would like the full message(s) to be sent in the email alert.

See Message #3448
http://nsclient.org/nscp/discussion/message/3452

See Message #3647
http://www.nsclient.org/nscp/discussion/topic/1431

See Lines 1515 and 1770
https://www.nsclient.org/nscp/browser/nscp/changelog

In NSClient++ 0.4.2 configuration file- nsclient.ini, I attempted several combinations of the following settings below.

Code: Select all

[/settings/default]
string_length=2048
payload length = 2048
;
[/settings/NRPE/client]
string_length = 2048
payload length = 2048
;
[/settings/NRPE/server]
string_length = 2048
payload length = 2048
;
[/settings/NRPE/client/targets/default]
string_length = 2048
payload length = 2048

Re: Increase NRPE payload

Posted: Mon May 05, 2014 3:33 pm
by slansing
When you run one of the checks manually from the XI server's command line, do you see all of the output you are requiring? Or is it being limited to the same amount that XI is displaying in the web interface? If it is being limited chances are things are not quite right on the NSClient++ side of things.

Re: Increase NRPE payload

Posted: Tue May 06, 2014 1:50 pm
by DonB
I ran the command from the Nagios server command line. It did truncate to 1023 characters. This will be the same size that is being sent in the email. Bu In NagiosXI's Service Status Details page, it truncates to 255 characters, It does appear that it is a nsclient++ setting needs to be tweaked to send more than 1024 characters and Nagios XI needs it's settings to display more than 255 characters in the web interface. For the NSClient++, it's my understanding from michem at nsclient.org, replied to my post that I needed to update the NRPE settings. But he didn't provide an example and there isn't any documentation that shows the settings. He didn't responded to my follow up question and my second post didn't show up in his forum. So I tried what I thought might work using string_length and payload length in several different locations in the ini file, but with no luck.

Post mentions that NRPE has to be configured...
http://www.nsclient.org/nscp/discussion/topic/1431

This post didn't show up in the forum, not sure why...
https://nsclient.org/nscp/discussion/topic/1443#-1

Command Used:

Code: Select all

check_nrpe -t 120 -H TEST_SERVER -c CheckEventLog -a "MaxWarn=1" "MaxCrit=5" "unique" "descriptions" "syntax=%type%: %id%: %source%: %message%:"EOM"" "filter=generated gt -1m AND type NOT IN ('success', 'info', 'warning',   'auditSuccess')"

Re: Increase NRPE payload

Posted: Tue May 06, 2014 4:30 pm
by Box293
DonB wrote:In NagiosXI's Service Status Details page, it truncates to 255 characters
I've observed this behavious as well (in both service information and performance data information).