Nagios HTTP check

Jason Clint jtclint at gmail.com
Thu Jan 26 19:23:11 CET 2012


Hi I am currently trying to do a check with the check_http or
check_http.plplugins.  Both are very similar but for some reason I
cant get either to
work.  I am running the checks like this:

check_http -H -S www.example.com -u /somestring - gives result: HTTP OK
HTTP/1.1 200 OK - 1752 bytes in 0.175 seconds |time=0.175032s;;;0.000000
size=1752B;;;0
check_http.pl -H www.example.com -s -u /somestring - gives result: Status:
CRITICAL HTTP/1.1 400 On Server  MESSAGE:

if I add -p 443 to the first check it gives this result: HTTP WARNING:
HTTP/1.1 400 Bad Request

also if I remove the -s option from the second check it works fine.  I know
the page works fine because it comes up however it still does not work with
the check?  Here is a port check:

nc -zv www.example.com 443
Connection to tags.mediaforge.com 443 port [tcp/https] succeeded!

I removed the domain due to company security sorry, anyway it comes back
just fine.  Also in case you are wondering if I am checking against the -u
/somestring I tried the ssl on just the standard site and it gives
forbidden which is what I would expect since the top sits is blocked:



check_http.pl -H www.example.com -s
Status: CRITICAL HTTP/1.1 400 On Server  MESSAGE:
check_http -H -S www.example.com
HTTP WARNING: HTTP/1.1 403 Forbidden

And the page shows this:
403 Forbidden
------------------------------
nginx/1.0.8

which is normal!  Any ideas on what I may be doing wrong would be of great
help thanks guys.


Jason Clint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120126/8f66473a/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list