Hi. I'm trying to customize the scrip shown at the bottom of this wiki page: http://requesttracker.wikia.com/wiki/AutoCloseOnNagiosRecoveryMessages
I know there is an extension that does merging, but I want to do some other things with the Nagios variables I have attached as a plain text file to the ticket that Nagios creates in RT. The first few lines in the scrip attempt to get the content of an attachment and put it in a variable named $content. I suspected that this was not working, so I added a debug line to dump the contents of $contents and it is empty. Here is the scrip code. my $T_Obj = $self->TicketObj; my $AttachObj = $self->TransactionObj->Attachments->First; my $content = $AttachObj->Content; $RT::Logger->debug("Contents: " . $content); The log output shows: [Wed Jul 6 19:47:49 2011] [debug]: Contents: ((eval 3934):4) The attachment is attached to the ticket. I can see it in the web ui and can open and read it with no problems. Any idea what I'm doing wrong here? Thanks John
-------- 2011 Training: http://bestpractical.com/services/training.html