Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264467 - net-analyzer/nagios-nrpe-2.12-r102: Please increase the buffer limits (MAX_INPUT_BUFFER and MAX_PACKETBUFFER_LENGTH) defined in the include/common.h
Summary: net-analyzer/nagios-nrpe-2.12-r102: Please increase the buffer limits (MAX_IN...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 06:33 UTC by Sascha Behrens
Modified: 2009-12-31 10:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Behrens 2009-04-01 06:33:51 UTC
We would like to integrate the new nagios-plugin "check_multi" in our monitoring-structure. check_multi is a multi purpose wrapper plugin which takes benefit of the Nagios 3.x capability to display multiple lines of plugin output. But to start with it, we must increase the buffer limits (MAX_INPUT_BUFFER and MAX_PACKETBUFFER_LENGTH) defined in the include/common.h.   
For this purpose it would be nice to have an USE-Flag or something else to install nagios-nrpe with a buffer limit of 8192.

Reproducible: Always

Steps to Reproduce:
1. Install net-analyzer/nagios-nrpe-2.12-r102 with the default buffer limits.
2. Install the nagios-plugin "check_multi"
3. Use the check_multi plugin
Actual Results:  
Nagios will only read the first 4 KB of data that the plugin returns.

Expected Results:  
Nagios should read the whole string.

Linkt to check_multi:
http://my-plugin.de/wiki/projects/check_multi/start
Comment 1 Marcel Pennewiß 2009-12-29 13:22:51 UTC
maybe AFAIK this breaks backward-compatibility and compatibility to non-patched nrpe-instances. maybe [1] seems to be a better way to resolve this issue?

[1] http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-12-31 10:07:00 UTC
(In reply to comment #1)
> maybe AFAIK this breaks backward-compatibility and compatibility to non-patched
> nrpe-instances. maybe [1] seems to be a better way to resolve this issue?
> 
> [1] http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html
> 

Yep, much "smarter" to solve it that way. Added in 2.12-r103.