[Nagiosplug-help] check_http

Cary Ferbrache CFerbrache at acosta.com
Thu Nov 19 16:03:06 CET 2009


When I use the check_http plugin it is placing the port number 80 in the header which is causing it to return HTTP WARNING: HTTP/1.1 400 Bad Request.

If there a way to keep it from putting the port number after the host name?

/usr/local/nagios/libexec/check_http -v -H fl-jax-gw-01.acosta.com -u "/Acosta Sharp/webforms/wfindex.aspx" -a 'login:password'

GET /Acosta Sharp/webforms/wfindex.aspx HTTP/1.0
User-Agent: check_http/v1.4.14 (nagios-plugins 1.4.14)
Connection: close
Authorization: Basic c2NoZWR1bGVyOkNhMTNuZGFS


http://fl-jax-gw-01:80/Acosta Sharp/webforms/wfindex.aspx is 149 characters
STATUS: HTTP/1.1 400 Bad Request
**** HEADER ****
Content-Type: text/html
Date: Thu, 19 Nov 2009 14:52:56 GMT
Connection: close
Content-Length: 20
**** CONTENT ****
<h1>Bad Request</h1>
HTTP WARNING: HTTP/1.1 400 Bad Request - 149 bytes in 0.008 second response time |time=0.008421s;;;0.000000 size=149B;;;0

Thanks,

Cary Ferbrache
Sr. Unix Adminstrator, Data Center Services
Acosta Sales and Marketing Company
6600 Corporate Center Parkway, Jacksonville, FL 32216
Phone: 904.296.4562
AVN: 810.4562
Cell: 904.607.9580
[cid:image001.jpg at 01CA68FE.3DAEACC0]
[cid:image002.jpg at 01CA68FE.3DAEACC0]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20091119/0c38e417/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2258 bytes
Desc: image001.jpg
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20091119/0c38e417/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1291 bytes
Desc: image002.jpg
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20091119/0c38e417/attachment-0001.jpg>


More information about the Help mailing list