<p dir="ltr">You can't with nsca. how about using nrpe? You would still have the scripts running on the monitored system. If you want to stick with passive checks (as far as you told us, there is no reason) there's a nsca alternative that use cgi and support multi line. </p>

<div class="gmail_quote">Il giorno 13/feb/2013 19:09, "Tech Support" <<a href="mailto:support@voipbusiness.us">support@voipbusiness.us</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">All;<u></u><u></u></p><p class="MsoNormal" style="text-align:justify">    I have a bunch of ( PERL ) plugins that are run passively out of CRON with the results sent to the Nagios monitoring host using NSCA. Most of them work great, and they return results on dozens of services. I’m doing it this way because instead of running dozens of plugins actively, I can run one plugin passively. The problem is I have a few that are choking when the output contains multi-line output, and I’m not sure how to get around that. Basically, my scripts look something like this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">foreach my $service ( @services ) {<u></u><u></u></p><p class="MsoNormal">    <Blah, Blah, Blah, do some stuff><u></u><u></u></p><p class="MsoNormal">    $nsca_cmd .= "$nscahost\t$service\t$code\t$output";<u></u><u></u></p>
<p class="MsoNormal">};<u></u><u></u></p><p class="MsoNormal">my $retval = `$system /bin/echo -e "$nsca_cmd" | $nscaprog -H $nagioshost -c $nscacfg`;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
Like I said, Nagios is choking when the output contains multi-line output. Does anyone have any insight at all on how I can get around this? Any help at all would be greatly appreciated.<u></u><u></u></p><p class="MsoNormal">
Thanks;<u></u><u></u></p><p class="MsoNormal">John<u></u><u></u></p><p class="MsoNormal"><span style="font-size:18.0pt;font-family:"Bradley Hand ITC";color:#1f497d">Tech Support<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:#1f497d">Technical Support</span><span style="color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">VoIP Business Solutions<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:#1f497d">240-215-3479, ext. 305<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><a href="mailto:fsd@voipbusiness.us" target="_blank"><span style="color:blue">support@voipbusiness.us</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>------------------------------------------------------------------------------<br>

Free Next-Gen Firewall Hardware Offer<br>
Buy your Sophos next-gen firewall before the end March 2013<br>
and get the hardware for free! Learn more.<br>
<a href="http://p.sf.net/sfu/sophos-d2d-feb" target="_blank">http://p.sf.net/sfu/sophos-d2d-feb</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" target="_blank">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>