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 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

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
doesn't get assigned to
Code: Select all

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
Tony Yarusso
Technical Services
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 19 guests