I have nagios 4.0.8 (and nagios-plugins at 2.0.3) running which checks emby that is running on the same computer (CentOS).
I use the following command to check the emby server:
Code:
/lib64/nagios/plugins/check_http -I 127.0.0.1 -p 8096
When I run this with the verbose flag -v I get the following result:
Code:
GET / HTTP/1.0
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Accept: */*
http://127.0.0.1:8096/ is 235 characters
STATUS: HTTP/1.1 400 Bad Request
**** HEADER ****
Content-Type: text/html; charset=utf-8
Server: Mono-HTTPAPI/1.0
Date: Sat, 31 Dec 2016 13:10:50 GMT
Content-Length: 65
Connection: close
**** CONTENT ****
<h1>Bad Request (Invalid url: http://::ffff:127.0.0.1:8096/)</h1>
HTTP WARNING: HTTP/1.1 400 Bad Request - 235 bytes in 0.001 second response time |time=0.001292s;;;0.000000 size=235B;;;0
I get exactly the same result if I add the -4 flag for ip4 addresses.
Curl results are similar.
Emby works fine if I direct my browser to 127.0.0.1:8096.
The problem seems to be that emby does not handle the url
http://::ffff:127.0.0.1:8096/ well.
Is it likely that something is wrong with emby?
Or is something wrong with ip6 configuration?
I would be very interested in any suggestions to tackle this problem