I am trying to get NagiosAcknowledge.pm working, but I am running into a few issues.  The http acknowledge url I am using in otrs is >

 

http://xxx.xxx.xxx.xxx/nagios/cgi-bin/cmd.cgi?cmd_typ=<CMD_TYP>&cmd_mod=2&host=<HOST_NAME>&service=<SERVICE_NAME>&sticky_ack=on&send_notification=on&persistent=on&com_data=<TicketNumber>&btnSubmit=Commit

 

The only change I made was the IP address.  When the script is called from otrs, the following is logged in the var/log/httpd/access.log on the nagios box >

 

xxx.xxx.xxx.xxx - nagiosadmin [24/Mar/2009:10:15:36 -0400] "GET /nagios/cgi-bin/cmd.cgi?cmd_typ=%3CCMD_TYP%3E&cmd_mod=2&host=host_name%0D&service=PING%0D&sticky_ack=on&send_notification=on&persistent=on&com_data=%3CTicketNumber%3E&btnSubmit=Commit HTTP/1.1" 200 1131 "-" "libwww-perl/5.816"

 

The issue is with the variables.  The <HOST_NAME> and <SERVICE_NAME> are both followed by a "%0D".  The Ticket number is also not correct in this example although it has worked in other tests.  This is obviously confusing nagios and causing the acknowledgement process to fail.

 

When I manually fill in the variables >

 

http://xxx.xxx.xxx.xxx/nagios/cgi-bin/cmd.cgi?cmd_typ=34&cmd_mod=2&host=host_name&service=PING&sticky_ack=on&send_notification=on&persistent=on&com_data=2008032414208038&btnSubmit=Commit

 

and paste it into a web browser, it works great.  The following (correct entry) is logged in the /var/log/httpd/access.log

 

xxx.xxx.xxx.xxx - nagiosadmin [24/Mar/2009:00:32:04 -0400] "GET /nagios/cgi-bin/cmd.cgi?cmd_typ=34&cmd_mod=2&host=host_name&service=PING&sticky_ack=on&send_notification=on&persistent=on&com_data=2008032414208038&btnSubmit=Commit HTTP/1.1" 200 1307 "-" "libwww-perl/5.816"

 

and the acknowledgment is successfully processed by nagios.

 

I had some customizations in my nagios emails and I was using postfix as opposed to sendmail.  I reverted back to the standard notification commands as well as to using sendmail for sending without any change.  I am running Fedora Core 9 on both machines and I'm out of ideas? 

 

Thanks in advance for any assistance you may be able to offer-

fevin