Asif,
   Thanks for your response.  I am attaching the actual plugin in this
email.  However the actual regular expression line is below.

if ($_=~ qr/$xgrep/mo){
                    $returnstring= "We have found $xgrep in $opfile";


nrpe definition is something like this

command[check_filecontent_x64]=/usr/lib64/nagios/plugins/check_filetest -n
$ARG1$ -G $ARG2$ -c $ARG3$


service definition is something like this

check_nrpe -H whatever -c check_filecontent_x64 -a filename ".*foo*" 1


On Wed, Mar 31, 2010 at 12:01 PM, Assaf Flatto <[email protected]> wrote:

> shadih rahman wrote:
> > I have a plugin script which does non-greedy regular expression search
> > .  Which works fine when invoked locally on the machine.  However when
> > I call it via nrpe, it does greedy regular expression search.  Can
> > someone shed some light into this?  Thanks in advance
> >
> > --
> > Cordially,
> > Shadhin Rahman
> We could help more if we saw the regex and the nrpe definitions (
> command and cfg file)
>
>
> --
> Never,Ever Cut A Deal With a Dragon
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Cordially,
Shadhin Rahman

Attachment: check_filetest
Description: Binary data

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to