<div>hi Fabio,</div>
<div> </div>
<div>I had a simmilar issue with check_nt.</div>
<div>the issue was the netutils.c had a limit of about 1k on the <font size="2">process_tcp_request function.</font> then when I went to use <font size="2">process_tcp_request2</font> it had another limit changing variables and DEFINES did not seem to work,
</div>
<div>my problem was the way the function was implemented.</div>
<div>to elaborate In the current version of check_nc_net.c that is built off of check_nt.c I tweeked the <font size="2">process_tcp_request2 funciton to continue recieving. </font></div>
<div><font size="2">The original <font size="2">process_tcp_request2 would only read till the recieve array was full. so I added an 'if' that prints to stdout via printf and then empties the rec array array and its character count.
</font></font></div>
<div><font size="2"></font> </div>
<div><font size="2">This solution may work for your needs. Download the source code, Check_nc_net.c is availible as its own download at NC_Net on sourceforge: <a href="http://sourceforge.net/projects/nc-net">http://sourceforge.net/projects/nc-net
</a></font></div>
<div><font size="2"></font> </div>
<div><font size="2">You would be interested in the function added to the end of the source code. </font></div>
<div><font size="2"><font size="2">process_tcp_request3. please note, I chose to direct the output to stdout since in check_nc_net this option is only meant to be used with the ENUMERATION commands that should be used to output to CONSOLE or some other application and not for input to nagios.
</font></font></div>
<div> </div>
<div> </div>
<div>Good Luck</div>
<div> </div>
<div>Tony (Author of NC_Net)</div>
<div> </div>
<div><span class="gmail_quote">On 8/15/07, <b class="gmail_sendername">Fabio Martins</b> <<a href="mailto:fabio@netwall.com.br">fabio@netwall.com.br</a>> wrote:</span></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, would like to know as increase the output of plugin.<br>I am using nagios 1.4 with postgres (status, downtime and comments).
<br>I modified variavel<br>#define MAX_PLUGINOUTPUT_LENGTH for 50000<br>in file common/objects.h, but it did not have effect.<br><br>Thanks, Fabio Martins<br><br>-------------------------------------------------------------------------
<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems? Stop.<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >>
<a href="http://get.splunk.com/">http://get.splunk.com/</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>