<html>
<head>
</head>
<body>
I know the size limit when writing to the command pipe, but why does the
same rule apply for plugins writing back to the daemon. Why can't nagios
be modified to handle a larger response from the plugin? Does the same pipe
limitation for external commands exist within the daemon?<br>
<br>
Russell Scibetti<br>
<br>
Jason Marshall wrote:<br>
<blockquote type="cite" cite="mid:Pine.GSO.4.10.10302131312300.23868-100000@orion.kelman.com">
<blockquote type="cite">
<pre wrap="">#define MAX_PLUGINOUTPUT_LENGTH 352<br></pre>
</blockquote>
<pre wrap=""><!----><br>Russell, that value, plus 160 bytes of miscellanous stuff, equals 512<br>bytes (that's not the interesting part).<br><br>The interesting part is that's the max size for atomic read/write<br>operations on a names pipe in Linux.<br><br>On my Solaris Nagios box, it's 5120 for the same atomic operation size<br>limitation, so I bumped up all the relevant stuff by 1024 bytes, and it<br>works fine.<br><br>I'm not sure where the perfdata would be carried in this case. If it goes<br>through the names pipe (probably), it may cause big problems if you're<br>reading and writing to and from the command file in chunks bigger than 512<br>bytes...<br><br>Unfortunately, it's going to be hard to verify if there is (or isn't) a<br>real problem, if you make the change. You may end up with command-file<br>commands being mangled, but maybe so infrequently that you could discount<br>them... Maybe...<br><br>---<br>Jason Marshall, Unix Geek, Kelman Technologies, Inc., C
algary, AB, Canada.<br><br> From a Sun Microsystems bug report (#4102680):<br> "Workaround: don't pound on the mouse like a wild monkey."<br><br> "I have great faith in fools: <br> Self confidence my friends call it." -Edgar Allan Poe<br><br><br><br><br>-------------------------------------------------------<br>This SF.NET email is sponsored by: FREE SSL Guide from Thawte<br>are you planning your Web Server Security? Click here to get a FREE<br>Thawte SSL guide and find the answers to all your SSL security issues.<br><a class="moz-txt-link-freetext" href="http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en">http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en</a><br>_______________________________________________<br>Nagios-users mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/n
agios-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><br><br></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Russell Scibetti
Quadrix Solutions, Inc.
<a class="moz-txt-link-freetext" href="http://www.quadrix.com">http://www.quadrix.com</a>
(732) 235-2335, ext. 7038
</pre>
<br>
</body>
</html>