check http

Yao, Jack jyao at aav.com.au
Wed Jul 16 04:20:55 CEST 2003


Hi Moti,
 
Shouldn't it be -U instead of -S in define command ? I tried -S , it
complains about no SSL avilable anyway. 
 
 
jack
 -----Original Message-----
From: Moti Levy [mailto:moti at flncs.com] 
Sent: Wednesday, 16 July 2003 11:37 AM
To: Yao, Jack
Subject: Re: [Nagios-users] check http



in checkcommands.cfg 
# 'check_http' command definition
define command{
        command_name    check_http
        command_line    $USER1$/check_http -H $HOSTADDRESS$ $ARG0$
        }
# 'check_https' command definition
define command{                
        command_name    check_https
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -S    $ARG0$

        }
in services.cfg 
define service{
            host_name                      ww
        service_description             www
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           10
        retry_check_interval            1
        contact_groups                  admins
        notification_interval           30
        notification_period             24x7
        notification_options            w,c,r
        check_command                   check_http!-u /page.asp -t 180
        }
this will check page.asp on www server 
 

----- Original Message ----- 
From: Yao, Jack <mailto:jyao at aav.com.au>  
To: 'nagios-users at lists.sourceforge.net'
<mailto:'nagios-users at lists.sourceforge.net'>  
Sent: Tuesday, July 15, 2003 7:38 PM
Subject: [Nagios-users] check http

HI there , 
 
 I am new to Nagios , trying to use check http command with argument. I can
execute it from command like this: 
 
./ check_http -H [hot ip address] -u /bla/bla.html
 
 
but cannot find the right syntax to put it in services,cfg  at check
command. Any advise for newbie ???
 
 
thanks 
 
J

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030716/7bc71e07/attachment.html>


More information about the Users mailing list