Re: [Nagios-users] check_snmp with regular expression

2009-12-10 Thread Martin Melin
It looks like you're trying to match "some string", no matter where it appears in the document. In that case, anchoring to line beginning and end is just extra work. Simply match on "some string", and you're good to go. The asterisk is a modifier to the dot, so it needs to come after that. So the

Re: [Nagios-users] check_snmp with regular expression

2009-12-10 Thread Greg Pangrazio
did you mean "^*.some string.*$" notice the period before the second * Greg Pangrazio pangr...@gmail.com On Thu, Dec 10, 2009 at 9:18 AM, shadih rahman wrote: > List, >    I am trying to use check_snmp plugin with the following regular > expression and I am getting an error, can someone poi

[Nagios-users] check_snmp with regular expression

2009-12-10 Thread shadih rahman
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