problem with check_http_site

SAHNOUN, Nadir nsahnoun at refco.fr
Tue Oct 19 14:25:43 CEST 2004


Hi,
 
Try -u parameter as :
command_line    $USER1$/check_http -H $HOSTADDRESS$ -u
/forum/list_messages/967646
 
and :
check_http_site!gathering.tweakers.net
 
and then, you can pass "/forum..." as paramters...
 
NS
 
 

-----Message d'origine-----
De : joost at informatiefabriek.nl [mailto:joost at informatiefabriek.nl]
Envoyé : mardi 19 octobre 2004 14:13
À : nagios-users at lists.sourceforge.net
Objet : [Nagios-users] problem with check_http_site



This is in my service.cfg 

define service{ 
        use                             generic-service 
        host_name                       ares 
        service_description             TEST SITE 
        is_volatile                     0 
        check_period                    24x7 
        max_check_attempts              4 
        normal_check_interval           5 
        retry_check_interval            1 
        contact_groups                  linux-admins 
        notification_interval           960 
        notification_period             24x7 
        check_command
check_http_site!"gathering.tweakers.net/forum/list_messages/967646" 
} 

This is in my checkcommands.cfg 

define command{ 
        command_name    check_http_site 
        command_line    $USER1$/check_http -H $ARG1$ 
} 

the command
check_http_site!"gathering.tweakers.net/forum/list_messages/967646" gives as
result: Name or service not known 
The adress is working (up). 

I Think it has to do with the slashes I used in the URL, because when I try
a regular address like www.cnn.com it works fine. 

Anyone have an idea how I can call the function with a parameter containing
slashes? 

regards, 

Joost Saanen
www.Informatiefabriek.nl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041019/9e2d497d/attachment.html>


More information about the Users mailing list