Asif,<br>   Thanks for your response.  I am attaching the actual plugin in this email.  However the actual regular expression line is below.<br><br>if ($_=~ qr/$xgrep/mo){<br>                    $returnstring= "We have found $xgrep in $opfile";<br>
<br><br>nrpe definition is something like this<br><br>command[check_filecontent_x64]=/usr/lib64/nagios/plugins/check_filetest -n $ARG1$ -G $ARG2$ -c $ARG3$<br><br><br>service definition is something like this<br><br>check_nrpe -H whatever -c check_filecontent_x64 -a filename ".*foo*" 1<br>
<br><br><div class="gmail_quote">On Wed, Mar 31, 2010 at 12:01 PM, Assaf Flatto <span dir="ltr"><<a href="mailto:nagios@flatto.net">nagios@flatto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">shadih rahman wrote:<br>
> I have a plugin script which does non-greedy regular expression search<br>
> .  Which works fine when invoked locally on the machine.  However when<br>
> I call it via nrpe, it does greedy regular expression search.  Can<br>
> someone shed some light into this?  Thanks in advance<br>
><br>
> --<br>
> Cordially,<br>
> Shadhin Rahman<br>
</div></div>We could help more if we saw the regex and the nrpe definitions (<br>
command and cfg file)<br>
<br>
<br>
--<br>
Never,Ever Cut A Deal With a Dragon<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</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><br><br clear="all"><br>-- <br>Cordially,<br>Shadhin Rahman<br>