I recently upgraded from Nagios XI 5.4.13 to 5.5.3 on my RHEL 7.5 server and one of my check_http services is failing. I'm checking that an application server is alive and am expecting it to return "HTTP/1.0 415 Request data not in text/xml format" when I feed it an empty request so I am calling check_http with these arguments:
check_http -v -H x.x.x.x -p 8412 -P "POST AppInterfaceServerRequest HTTP/1.0\nContent-Type: text/xml" -e "415" -w 5 -c 10
This used to work in 5.4.13 but as soon as I upgraded, every service using this call returned a critical status. When I try running it from the command line I see the following message:
Code: Select all
[root@nagiosxi libexec]# ./check_http -v -H x.x.x.x -p 8412 -P "POST AppInterfaceServerRequest HTTP/1.0\nContent-Type: text/xml" -e "415" -w 5 -c 10
POST / HTTP/1.1
User-Agent: check_http/v2.2.1 (nagios-plugins 2.2.1)
Connection: close
Host: x.x.x.x:8412
Accept: */*
Content-Type: application/x-www-form-urlencoded
Content-Length: 63
POST AppInterfaceServerRequest HTTP/1.0\nContent-Type: text/xml
http://x.x.x.x:8412/ is 229 characters
STATUS: HTTP/1.0 415 Request data not in text/xml format
**** HEADER ****
Date 2018-09-10 17:43:02.671
Server: RedBack Application Server 5.1
MIME-version: 1.0
Last-modified: 2018-09-10 17:43:02.671
Content-type: text/plain
Content-length: 180
**** CONTENT ****
Status line output matched "415" -
HTTP CRITICAL: Invalid Status Line (HTTP/1.0 415 Request data not in text/xml format)
[root@nagiosxi libexec]# Cheers,
Craig