Small read status data patch

Matthias Flacke Matthias.Flacke at stiegemeyer.de
Sat Jun 23 00:41:12 CEST 2007


Hello Ethan, hello list,

testing around with multiline plugin output Hendrik and I found that the 
long
plugin output in extinfo.cgi was cut around 2000 bytes. The reason for that
restriction is a hardcoded buffer definition in function 
xsddefault_read_status_data:
char input[2048]="";

I attached a small patch against xsddefault.c to replace '2048' with
MAX_PLUGIN_OUTPUT_LENGTH.  I would prefer this setting instead of
MAX_INPUT_BUFFER because otherwise numerous buffer definitions will be
extended and IMO the plugin output length will be likely the longer part 
in future.

Kind regards,
Matthias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xsddefault.c.patch
Type: text/x-patch
Size: 322 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070623/529c2b24/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list