[rt-users] AutoCloseOnNagiosRecoveryMessage

Kevin Falcone falcone at bestpractical.com
Fri Apr 15 12:25:34 EDT 2011


On Fri, Apr 15, 2011 at 11:32:22AM -0400, Thomas Sibley wrote:
> On 04/15/2011 11:23 AM, Giuseppe Sollazzo wrote:
> > Hi all,
> > I've been trying to use this scrip to auto close Nagios tickets upon
> > recovery:
> > http://requesttracker.wikia.com/wiki/AutoCloseOnNagiosRecoveryMessages
> > 
> > The Script is launched, but there's an error
> > 
> > [Sat Mar  5 02:40:02 2011] [error]: Scrip 12 Commit failed: Quantifier
> > follows nothing in regex; marked by <-- HERE in m/* <-- HERE * RECOVERY
> > (w+) - (.*) OK **/ at (eval 3695) line 13.
> > 
> > I'm not terribly good at Perl and especially its regexp, but I've got a
> > feeling it might be an escaping issue?
> > Has anyone encountered this problem - or am I maybe just using a very
> > old script?
> 
> I don't know if the scrip is old or not, but you need to backslash
> escape the asterisks at the beginning and end of that regex (but not the
> one following the period in the middle).
> 
> m/\*\* RECOVERY (w+) - (.*) OK \*\*/

There is also http://search.cpan.org/dist/RT-Extension-Nagios/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110415/0ca28367/attachment.sig>


More information about the rt-users mailing list