Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-03 Thread Rodolphe A.
Hi sunnavy, Setup seems good. No error message. Thanks. I am reading your documentation on url : http://cpan.uwinnipeg.ca/htdocs/RT-Extension-Nagios/ Regards, Rodolphe 2009/11/3 sunnavy sunn...@bestpractical.com Hi Rodolphe It's a bug, I'm sorry for that. please test the new version

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-03 Thread Rodolphe A.
sunnavy, Can you give us some examples in RT with your plugin ? Because I don't understand your documentation. Thanks, Rodolphe 2009/11/3 Rodolphe A. rodolph...@gmail.com Hi sunnavy, Setup seems good. No error message. Thanks. I am reading your documentation on url :

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-03 Thread sunnavy
Hi Rodolphe which part you don't understand? IMHO, the extension's workflow is not complex at all. best wishes sunnavy On 09-11-03 17:41, Rodolphe A. wrote: sunnavy, Can you give us some examples in RT with your plugin ? Because I don't understand your documentation. Thanks,

[rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread Rodolphe ALT
Hi all, I am trying create a scrip in RT3 for close automaticly the tickets from Nagios alert. I am working from the scrips AutoCloseOnNagiosRecoveryMessages - RT Integration from website

[rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread Rodolphe A.
Hi all, I am trying create a scrip in RT3 for close automaticly the tickets from Nagios alert. I am working from the scrips AutoCloseOnNagiosRecoveryMessages - RT Integration from website

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread Richard Foley
You've got a dash (-) character in your regex which doesn't appear in the subject line of the mail. Subject =~ /\*\* PROBLEM (\w+(?:\s*\d+)?) - (.*) is (\w+) \*\*/ ^ Which might have something to do with it? -- Richard Foley Ciao - shorter than

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread sunnavy
Hi Rodolphe Maybe you're interested in the RT extension attached, which is based on the wiki you read. I'm thinking of publishing it to CPAN soon. best wishes sunnavy On 09-11-02 12:00, Rodolphe ALT wrote: Hi all, I am trying create a scrip in RT3 for close automaticly the tickets from

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread Rodolphe ALT
Hi Sunnavy, Thanks a lot for this tip, because on the link ( http://wiki.bestpractical.com/view/AutoCloseOnNagiosRecoveryMessages) it was not wrote. I have read the file README. After make and install, I have add this line in file /opt/rt3/etc/RT_SiteConfig.pm

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread Rodolphe ALT
Hi Richard, I have try without dash. (thanks for that) But it is always the same result (not detected) Regex is : Subject =~ /\*\* PROBLEM (\w+(?:\s*\d+)?) (.*) is (\w+) \*\*/ Subject Email is: Subject = ** PROBLEM Service Alert: srv08.athome.local/Portail is CRITICAL ** Regards,

Re: [rt-users] help in creating Scrips (Nagios autoclose)

2009-11-02 Thread sunnavy
Hi Rodolphe It's a bug, I'm sorry for that. please test the new version attached. best wishes sunnavy On 09-11-02 15:16, Rodolphe ALT wrote: Hi Sunnavy, Thanks a lot for this tip, because on the link ( http://wiki.bestpractical.com/view/AutoCloseOnNagiosRecoveryMessages) it was not

Re: [rt-users] help in creating Scrips

2009-06-15 Thread Raed El-Hames
Typo on my part change all instances of: $self-TicketsObj- to $self-TicketObj- Note it should TicketObj and not Ticket_s_Obj Regards; Roy Thanks Raed. I tried you're script but am getting error. Jun 12 13:09:54 data1 RT: Scrip 26 Commit failed: Can't locate object method TicketsObj

Re: [rt-users] help in creating Scrips

2009-06-15 Thread rmp dmd
Thanks Raed. I changed it. However, tickets are still created when sent with the same subject. Below are the logs: Hope you can help me identify. Thanks! LOGS *1st email with Subject: ** PROBLEM alert - Echo PC02 Server/https-alt is CRITICAL **:* [Mon Jun 15 14:01:27 2009] [debug]: Converting

Re: [rt-users] help in creating Scrips

2009-06-15 Thread rmp dmd
Thanks Raed. Your help is very much appreciated. All is fine now. On Mon, Jun 15, 2009 at 10:27 AM, Raed El-Hames r...@vialtus.com wrote: I think you are misunderstanding what merge actually mean, or I am misunderstanding you, when you merging you are making 2 tickets into 1, so the scrip

Re: [rt-users] help in creating Scrips

2009-06-12 Thread rmp dmd
I changed this $TicketsObj-LimitStatus(VALUE = 'new'); $TicketsObj-LimitStatus(VALUE = 'open'); to: $TicketsObj-LimitCustomField(CUSTOMFIELD = 'OAReqNum', OPERATOR = '=', VALUE = $oa); but I'm getting error Jun 11 22:13:13 data1 RT: Query error in ( 'CF.' = 'alert' ) AND (

Re: [rt-users] help in creating Scrips

2009-06-12 Thread Raed El-Hames
You answered you are own question , yes you are getting the error because you do not have the custom field Create the custom field and apply it to all queues (unless the scrip below is not a global scrip -- but I doubt that--) Can you explain what you are trying to do, maybe we can help you, I

Re: [rt-users] help in creating Scrips

2009-06-12 Thread rmp dmd
I just want to merge new tickets with existing tickets with matching subject line. I have been provided with the script below. But getting errors on this line cause the Custom field is not present. error $TicketsObj-LimitCustomField(CUSTOMFIELD = 'OAReqNum', OPERATOR = '=', VALUE = $oa); I need

Re: [rt-users] help in creating Scrips

2009-06-12 Thread Raed El-Hames
1- Your error log: - If you have not a directory /var/log/rt3 , create it and create the file rt.log by touch touch /var/log/rt3/rt.log then make sure its owned by the user:group running the web server (apache or whatever) -if you have not already make sure you have the below line in

Re: [rt-users] help in creating Scrips

2009-06-12 Thread rmp dmd
Thanks Raed. I tried you're script but am getting error. Jun 12 13:09:54 data1 RT: Scrip 26 Commit failed: Can't locate object method TicketsObj via package RT::Action::UserDefined at (eval 4184) line 1. Stack: [(eval 4184):1] [/opt/rt3/lib/RT/ScripAction_Overlay.pm:241]

Re: [rt-users] help in creating Scrips

2009-06-11 Thread rmp dmd
Thank you very Matthew for that concise response. Appreciate it! Follow-up though or anyone who understand scrips, kindly help. Please teach me what is OPERATOR = '=', ENTRYAGGREGATOR, OPERATOR value is expecting from status. This is the line from the scrip: $search-LimitStatus(VALUE =

Re: [rt-users] help in creating Scrips

2009-06-11 Thread rmp dmd
Thank you very much Raed. This problem explains while I merging the newly created tickets to a ticket with status 'new' on the top of the list. I need to merge new ticket to an existing ticket with subject matching ** PROBLEM - any words - CRITICAL ** . 1st request, this is a match: #2316: **

Re: [rt-users] help in creating Scrips

2009-06-10 Thread Emmanuel Lacour
On Tue, Jun 09, 2009 at 10:23:47PM -0400, rmp dmd wrote: Hi, I would like to create a scrip which reject tickets with Resolve on the subject of the email request. We have set-up nagios alerts that send email to RT for creation of tickets. We do not want tickets to be created when nagios

Re: [rt-users] help in creating Scrips

2009-06-10 Thread Drew Barnes
Emmanuel Lacour wrote: On Tue, Jun 09, 2009 at 10:23:47PM -0400, rmp dmd wrote: Hi, I would like to create a scrip which reject tickets with Resolve on the subject of the email request. We have set-up nagios alerts that send email to RT for creation of tickets. We do not want tickets

Re: [rt-users] help in creating Scrips

2009-06-10 Thread rmp dmd
Thank you very much Drew. Your link definitely is a big help. The syntax are quite different with the programming applications that I am familiar (very few though). It's very hard modifying it for our specific use. Is there a guide about this? For starters, someone kindly teach me the meaning

[rt-users] help in creating Scrips

2009-06-09 Thread rmp dmd
Hi, I would like to create a scrip which reject tickets with Resolve on the subject of the email request. We have set-up nagios alerts that send email to RT for creation of tickets. We do not want tickets to be created when nagios send a RESOLVE alert. Kind novice on scrip. thanks for the help!