[rt-users] AutoCloseOnNagiosRecoveryMessage

Giuseppe Sollazzo gsollazz at sgul.ac.uk
Tue Apr 19 07:19:28 EDT 2011


Hi Kevin,
thanks for the advise - I'll try this one although I'm wondering if it's 
stable enough?

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/


-- 
____________________________________

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George's, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz at sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583





More information about the rt-users mailing list