<font face="courier new,monospace"><br clear="all"></font><br><div class="gmail_quote">On 27 February 2013 02:36, Willis Ralph <span dir="ltr"><<a href="mailto:Willis.Ralph@asx.com.au" target="_blank">Willis.Ralph@asx.com.au</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-AU"><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I have been making use of <a href="http://check_log2.pl" target="_blank">check_log2.pl</a>. It works fine. When I ran it from the command line on my Nagios server the output is correct.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">/usr/local/nagios/libexec/check_nrpe -H server111   -c check_logfiles<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">This brings back <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">WARNING: (3): [LOG|ERROR|27 Feb 2013 10:52:36,683|com.example.Bean|Worker-2|-]<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">The trouble is that the Nagios monitoring screen output in the Status Information field treats the first “| “ as a delimiter and truncates the output  to  <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">[LOG|<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Is there a way to make Nagios display the complete line ?<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u></span></p></div></div></blockquote><div><br><br>This will be becouse Nagios treats anything after a | in the output of a check as performance data.<br>

You will need to etit the script to work with your data, I think if the output is quoted the | will be ignored, if that does not work try urlencoding it instead.<br><br><br>e.g. In the version of <span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="http://check_log2.pl" target="_blank">check_log2.pl</a>.i have the output line looks like this:<br>

<br></span>        print "($pattern_count): $pattern_line";<br><br>you could try <br><span style="font-size:10.0pt;font-family:"Arial","sans-serif""></span><br>        print "($pattern_count): \"$pattern_line\"";<br>

<br>--<br>Regards,<br>Ritchie<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-AU"><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Willis<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">Willis Ralph</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">| Systems Administrator</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> <br>

</span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">ASX Limited | 20 Bridge Street | Sydney  NSW  2000 </span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>

</span><b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:gray">t:</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif""> +61 2 9227 0661 |</span><b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span></b><b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:gray">m:</span></b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif""> 0417 652755 |</span><b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span></b><b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:gray">e: </span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>

</span><b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:gray">w:</span></b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">  <a href="http://www.asx.com.au" target="_blank">www.asx.com.au</a></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> <u></u><u></u></span></p>

<p class="MsoNormal"><b><span style="font-size:18.0pt;font-family:Webdings;color:green" lang="EN-US">P</span></b><b><i><span style="font-size:12.0pt;font-family:"Times New Roman","serif"" lang="EN-US"> </span></i></b><b><i><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:green">Please consider the environment before printing this email</span></i></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> <u></u><u></u></span></p>

<p class="MsoNormal"><span><br><br><br><br><br><br><br></span><span><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div><pre>PRIVACY COLLECTION STATEMENT
ASX uses and discloses your personal information only for the purpose for
which you provided it. Your personal information will not be disclosed or used
for any other purpose unless you consent or ASX is otherwise permitted to do
so under the Privacy Act 1988 (Cth).

CONFIDENTIAL EMAIL
The information in this email is confidential and may be privileged or subject
to copyright. It is intended for the exclusive use of the addressee(s). If you 
are not an addressee, do not copy, distribute or otherwise act on the email. 
If you have received the email in error, please contact the sender immediately 
and delete the email.  The unauthorised use of this email may result in 
liability for breach of confidentiality, privilege or copyright. E-mail 
transmissions cannot be guaranteed to be secure or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, 
or contain viruses. The sender therefore does not accept liability for errors 
or omissions in the contents of this message which arise as a result of e-mail
transmission.
</pre></div><br>------------------------------------------------------------------------------<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href="http://p.sf.net/sfu/appdyn_d2d_feb" target="_blank">http://p.sf.net/sfu/appdyn_d2d_feb</a><br>_______________________________________________________<br>
Nagios Plugin Development Mailing List <a href="mailto:Nagiosplug-devel@lists.sourceforge.net">Nagiosplug-devel@lists.sourceforge.net</a><br>
Unsubscribe at <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>