How to debug a check_http problem?

Götz Reinicke goetz.reinicke at filmakademie.de
Tue Oct 14 17:59:26 CEST 2008


Hi,

pwd
/usr/local/nagios/libexec

./check_http -H www.filmakademie.de
HTTP OK HTTP/1.1 200 OK - 24726 bytes in 1,560 seconds 
|time=1,560469s;;;0,000000 size=24726B;;;0


# 'check_http' command definition
define command{
         command_name    check_http
         command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
         }


O.K. the problem is, that the command definition uses the IP Address ... 
changing the "-I" option to "-H" solves my problem.

AFAIK I haven't ever touched this command definition....

Thanks so far and best regards

Götz Reinicke


Assaf Flatto schrieb:
> Can you show us the command you are using and the way it is set in your commands.cfg file ?
> 
> there shouldn't be a problem querying a virtual server , as your request goes to the IP.
> 
> 
> 
> On Tuesday 14 October 2008 15:23:38 Götz Reinicke wrote:
>> Hi,
>>
>> recently I noticed, that checking some virtual http services fails.
>>
>> If I launch the check_http command by hand, I do get a "HTTP OK" message.
>>
>> If the check is launched by nagios, it fails with an "HTTP WARNING:
>> HTTP/1.1 404 Not Found" message.
>>
>> Checking some non-virtual http-servers works fine.
>>
>> What could be the problem?
>>
>> Thanks for any hint and best regards
>>
>> Götz Reinicke
> 
> 
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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