[rt-users] AutoCloseOnNagiosRecoveryMessage

Kevin Falcone falcone at bestpractical.com
Wed Apr 20 11:56:19 EDT 2011


On Tue, Apr 19, 2011 at 12:19:28PM +0100, Giuseppe Sollazzo wrote:
> thanks for the advise - I'll try this one although I'm wondering if
> it's stable enough?

I'm not sure why it would be unstable?

> Thomas, oops, something must have gone wrong in the copy&paste.
> 
> Thanks,
> Giuseppe
> 
> On 15/04/11 17:25, Kevin Falcone wrote:
> >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/20110420/96d81b0b/attachment.sig>


More information about the rt-users mailing list