LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nagios - Check_Dummy / Check_Http (https://www.linuxquestions.org/questions/linux-software-2/nagios-check_dummy-check_http-262128/)

Brainli 12-03-2004 08:50 AM

Nagios - Check_Dummy / Check_Http
 
When i test a WebServer i get the Status -> HTTP WARNING: HTTP/1.1 403 Access Forbidden

How can i use check_dummy to correct the Status WARNING to OK ?

Thanks a lot.. :)

Greets from Switzerland

Brainli 12-06-2004 01:24 AM

:cry:

Nobody has a answer :Pengy:

mrmagos 12-15-2004 01:09 PM

Are you just trying to verify that the webserver is running? If so, you could use check_tcp!80 for the check command.

denver1980 10-02-2005 05:09 PM

You get an Access Denied because the page refered by $HOSTNAME$ (ex : www.mydomain.com) can't be access directly.
If you need to go at a specific page ( ex : www.mydomain.com/login.asp) you must use a different check.
You must be using the basic check_http :
Code:

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

Define a new one in your checkcommands.cfg :
Code:

define command{
        command_name    check_http_url
        command_line    $USER1$/check_http -H "$HOSTADDRESS$/$ARG1$"
        }

then in your services.cfg, replace the entry for the new check command :
Code:

define service{
        use                            template_for_that_host
        service_description            MyWebPage
        check_command                  check_http!login.asp



All times are GMT -5. The time now is 08:38 AM.