I am trying to acknowledge the nagios alarm ticket but for some reason it wasnt working. When I try , I am seeing below error.
It was working fine last time I checked(couple of months) but now its not working.Dec 18 14:42:33 otrs OTRS-CGI-06[33764]: [Error][Kernel::System::Ticket::Event::NagiosAcknowledge::_HTTP][Line:263]: Can't request http://nms.bxi.lan/nagios/cgi-bin/cmd.c ... mit=Commit: 500 read timeout
Note: I could ping the nagios server from OTRS.
Below is the output when I try the ack link throught cli,
Code: Select all
[root@otrs ~]# curl -u Ack_By_OTRS:superguys -v http://nms.bxi.lan/nagios/cgi-bin/cmd.cgi?cmd_typ=34&cmd_mod=2&host=NfSen&service=SysConntracker&sticky_ack=on&send_notification=on&persistent=on&com_data=06104725&btnSubmit=Commit
[1] 34775
[2] 34776
[3] 34777
[4] 34778
[5] 34779
[6] 34780
[7] 34781
[8] 34782
[2] Done cmd_mod=2
[4] Done service=SysConntracker
[5] Done sticky_ack=on
[6] Done send_notification=on
[root@otrs ~]# * About to connect() to nms.bxi.lan port 80 (#0)
* Trying 192.168.199.161...
* Connected to nms.bxi.lan (192.168.199.161) port 80 (#0)
* Server auth using Basic with user 'Ack_By_OTRS'
> GET /nagios/cgi-bin/cmd.cgi?cmd_typ=34 HTTP/1.1
> Authorization: Basic QWNrX0J5X09UUlM6c3VwZXJndXlz
> User-Agent: curl/7.29.0
> Host: nms.bxi.lan
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 18 Dec 2017 14:47:28 GMT
< Server: Apache/2.2.15 (CentOS)
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
<
<html>
<head>
<link rel="shortcut icon" href="/nagios/images/favicon.ico" type="image/ico">
<title>
External Command Interface
</title>
<LINK REL='stylesheet' TYPE='text/css' HREF='/nagios/stylesheets/common.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='/nagios/stylesheets/cmd.css'>
</head>
<body CLASS='cmd'>
<!-- Produced by Nagios (http://www.nagios.org). Copyright (c) 1999-2007 Ethan Galstad. -->
<table border=0 width=100%>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>External Command Interface</DIV>
Last Updated: Mon Dec 18 14:50:02 GMT 2017<BR>
Nagios® Core™ 3.5.1 - <A HREF='http://www.nagios.org' TARGET='_new' CLASS='homepageURL'>www.nagios.org</A><BR>
Logged in as <i>Ack_By_OTRS</i><BR>
</TD></TR>
</TABLE>
</td>
<td align=center valign=top width=33%>
</td>
<td align=right valign=bottom width=33%>
</td>
</tr>
</table>
<P><DIV ALIGN=CENTER CLASS='cmdType'>You are requesting to acknowledge a service problem</DIV></p>
<p>
<div align='center'>
<table border=0 width=90%>
<tr>
<td align=center valign=top>
<DIV ALIGN=CENTER CLASS='optBoxTitle'>Command Options</DIV>
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=1 CLASS='optBox'>
<TR><TD CLASS='optBoxItem'>
<form method='post' action='cmd.cgi'>
<TABLE CELLSPACING=0 CELLPADDING=0 CLASS='optBox'>
<tr><td><INPUT TYPE='HIDDEN' NAME='cmd_typ' VALUE='34'><INPUT TYPE='HIDDEN' NAME='cmd_mod' VALUE='2'></td></tr>
<tr><td CLASS='optBoxRequiredItem'>Host Name:</td><td><b><INPUT TYPE='TEXT' NAME='host' VALUE=''></b></td></tr>
<tr><td CLASS='optBoxRequiredItem'>Service:</td><td><b><INPUT TYPE='TEXT' NAME='service' VALUE=''><tr><td CLASS='optBoxItem'>Sticky Acknowledgement:</td><td><b><INPUT TYPE='checkbox' NAME='sticky_ack' CHECKED></b></td></tr>
<tr><td CLASS='optBoxItem'>Send Notification:</td><td><b><INPUT TYPE='checkbox' NAME='send_notification' CHECKED></b></td></tr>
<tr><td CLASS='optBoxItem'>Persistent Comment:</td><td><b><INPUT TYPE='checkbox' NAME='persistent' ></b></td></tr>
<tr><td CLASS='optBoxRequiredItem'>Author (Your Name):</td><td><b><INPUT TYPE='TEXT' NAME='com_author' VALUE='OTRS Ticket System' READONLY DISABLED></b></td></tr>
<tr><td CLASS='optBoxRequiredItem'>Comment:</td><td><b><INPUT TYPE='TEXT' NAME='com_data' VALUE='' SIZE=40></b></td></tr>
<tr><td CLASS='optBoxItem' COLSPAN=2></td></tr>
<tr><td CLASS='optBoxItem'></td><td CLASS='optBoxItem'><INPUT TYPE='submit' NAME='btnSubmit' VALUE='Commit'> <INPUT TYPE='reset' VALUE='Reset'></td></tr>
</table>
</form>
</td>
</tr>
</table>
</td>
<td align=center valign=top width=50%>
<DIV ALIGN=CENTER CLASS='descriptionTitle'>Command Description</DIV>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 CLASS='commandDescription'>
<TR><TD CLASS='commandDescription'>
This command is used to acknowledge a service problem. When a service problem is acknowledged, future notifications about problems are temporarily disabled until the service changes from its current state.
If you want acknowledgement to disable notifications until the service recovers, check the 'Sticky Acknowledgement' checkbox.
Contacts for this service will receive a notification about the acknowledgement, so they are aware that someone is working on the problem. Additionally, a comment will also be added to the service.
Make sure to enter your name and fill in a brief description of what you are doing in the comment field. If you would like the service comment to remain once the acknowledgement is removed, check
the 'Persistent Comment' checkbox. If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck the 'Send Notification' checkbox.
</TD></TR>
</TABLE>
</td>
</tr>
</table>
</div>
</p>
<P><DIV CLASS='infoMessage'>Please enter all required information before committing the command.<br>Required fields are marked in red.<br>Failure to supply all required values will result in an error.</DIV></P>
<!-- Produced by Nagios (http://www.nagios.org). Copyright (c) 1999-2007 Ethan Galstad. -->
</body>
</html>
* Closing connection 0
You have new mail in /var/spool/mail/root
[1] Done curl -u Ack_By_OTRS:superguys -v http://nms.bxi.lan/nagios/cgi-bin/cmd.cgi?cmd_typ=34
[3] Done host=NfSen
[7]- Done persistent=on
[8]+ Done com_data=06104725
Any idea what should I look for to troubleshoot?