check_snmp with regular expression

Greg Pangrazio pangrazi at gmail.com
Thu Dec 10 16:28:07 CET 2009


did you mean
"^*.some string.*$"

notice the period before the second *

Greg Pangrazio
pangrazi at gmail.com





On Thu, Dec 10, 2009 at 9:18 AM, shadih rahman <shadhin71 at gmail.com> wrote:
> List,
>    I am trying to use check_snmp plugin with the following regular
> expression and I am getting an error, can someone point out what am I doing
> wrong.  Thanks
>
>
>
> /usr/lib64/nagios/plugins/check_snmp -H hostname -C community -o
> .1.3.6.1.2.1.1.6.0 -r "^*.some string*$"
>
> Could Not Compile Regular Expressioncheck_snmp: Could not parse arguments
>
>
>
>
> --
> Cordially,
> Shadhin Rahman
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
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