greedy regular experssion nrpe

shadih rahman shadhin71 at gmail.com
Wed Mar 31 18:14:05 CEST 2010


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 <nagios at flatto.net> 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® 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
> Nagios-users at lists.sourceforge.net
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100331/2177f2ac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_filetest
Type: application/octet-stream
Size: 6040 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100331/2177f2ac/attachment.obj>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® 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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list