Pattern matching with Nagios 3.x embedded perl

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Pattern matching with Nagios 3.x embedded perl

Postby william.sweat » Wed May 11, 2011 7:08 pm

Hello,
Is there documentation that lists the differences in interpreters for embedded perl and regular perl (5.8.8)?

In one of my scripts I'm using a regex pattern match with the case-insensitive option, 'i'. This example:
Code: Select all
if ($var =~ /name/i)

Will work fine in regular perl, but it looks like the embedded nagios perl doesn't recognize the case-insensitive option, so
Code: Select all
nAmE
doesn't get assigned to
Code: Select all
$var
.

Thanks
william.sweat
 
Posts: 3
Joined: Fri Mar 25, 2011 12:57 pm

Re: Pattern matching with Nagios 3.x embedded perl

Postby tonyyarusso » Thu May 12, 2011 9:27 am

It's not terribly comprehensive, but there is some information on http://nagios.sourceforge.net/docs/3_0/epnplugins.html.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tonyyarusso
 
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 5 guests