check_http not returning expected 502
Marc Powell
marc at ena.com
Sun Dec 7 23:02:38 CET 2008
On Dec 7, 2008, at 11:04 AM, jimj wrote:
> Hello,
>
> I've got nagios installed and seems to be running ok except for one
> thing. I'm running https checks with "check_http" and get the
> expected result when I run it on the command line:
>
> ./check_http -H somehost.com -S
>
> HTTP CRITICAL: HTTP/1.1 502 Bad Gateway
>
>
> But in the UI its giving me:
>
> HTTP OK HTTP/1.1 200 OK
>
> My config runs it like this:
>
> check_command check_http!-S -t 30
>
> Anybody have any ideas?
The command line that nagios is actually executing comes from the
check_http command{} definition. Is it the same as your test above
with the $ARG1$ substitution? Based on what you've shown so far,
there's already a minor difference...
--
Marc
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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