The custom plugin is being called via the check_by_ssh plugin and $SERVICEOUTPUT$ is captured just fine. If I run it by hand it gives the expected results. <br><br><br><br><br><div class="gmail_quote">On Mon, Oct 5, 2009 at 12:04 PM, Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com">marc@ena.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Please always respond on list. More below --<div class="im"><br>
<br>
On Oct 5, 2009, at 10:45 AM, Noel Platzke wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm looking for it to be captured in the $LONGSERVICEOUTPUT$ macro. Where else would it be?<br>
</blockquote>
<br></div>
That will capture anything after the first line of text but if you're looking for it as part of a host notification (or elsewhere it's not supported), you're not going to find it. That's what I meant by 'where/how are you looking for it'.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All I'm doing is writing plaintext output to stdout but for some reason nagios isn't picking it up. If I run the script by hand it prints to stdout. If I change the output to a file it writes to the file fine. But if the script is invoked by nagios it never sees the output.<br>

</blockquote>
<br></div>
Does $SERVICEOUTPUT$ capture the first line of output of your script? If not, you probably need to provide more specific detail about nagios version, how you're calling your plugin from nagios (command{} definition, etc) and specifically how it's providing it's output for nagios to capture. The assumption to this point is that nagios is calling the plugin directly. Other methods can yield different results.<br>

<br>
--<br><font color="#888888">
Marc<br>
<br>
</font></blockquote></div><br>