Page 1 of 1

HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Mon Dec 03, 2012 11:06 pm
by rhcekumaran
Error is : --- HTTP CRITICAL -Invalid HTTP response received from host: <html><!.. InstanceBegin template="/Templates/vorlage.dwt"
codeOutsideHTMLIsLocked="false" -->


Hi,

I am Senthil kumar Installed nagios core 3.4.1 in centos 6,and its working fine,i have added two host and services from one host HTTP service is showing the Critical Error and i have mentioned the error above.Please can i get the way to fix it.

my contact no : 91-9445311106

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Tue Dec 04, 2012 8:50 am
by scottwilkerson
Can you send the check command you are using

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Tue Dec 04, 2012 11:32 pm
by rhcekumaran
define service{
use generic-service
host_name http://stgdb.interaktco.com
service_description HTTPD
check_command check_http
notifications_enbled 0
}

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Tue Dec 04, 2012 11:36 pm
by rhcekumaran
scottwilkerson wrote:Can you send the check command you are using

define service{
use generic
host_name http://stgdb.interaktco.com
service_description HTTPD
check_command check_http
notifications_enabled 0
}

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Wed Dec 05, 2012 12:48 pm
by sreinhardt
Please try removing the http:// from the front of your host_name definition. After replicating your error, this resolved the issue for me.

Code: Select all

define service{
use generic
host_name stgdb.interaktco.com
service_description HTTPD
check_command check_http
notifications_enabled 0
}

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Wed Dec 05, 2012 10:47 pm
by rhcekumaran
same error again.

Even i removed the http:// , same error is there.
I have changed the host name also ,no improvement.

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Posted: Thu Dec 06, 2012 12:57 pm
by sreinhardt
Could you try and run the following command and see if returns correctly or continues to send errors.

Code: Select all

/usr/local/nagios/libexec/check_http -H stgdb.interaktco.com

I was able to run your service check with a few minor changes below, and had no issues. Have you changed the check_http command at all, and can you post the generic or generic-service template that is being applied?

Code: Select all

define host {
        host_name       stgdb.interaktco.com
        alias           stgdb
        address         216.121.117.25
        check_interval          5
        retry_interval          1
        max_check_attempts      5
        check_period            24x7
        contact_groups          CoreAdmins
        notification_interval   30
        notification_period     24x7
        notification_options    d,u,r
}

define service{
        host_name       stgdb.interaktco.com
        service_description             HTTPD
        check_command                   check_http
        notifications_enabled           0
        check_interval                  10
        check_period                    24x7
        retry_interval                  3
        max_check_attempts              3
        notification_interval           30
        notification_period             24x7
        notification_options            w,c,r
        contact_groups                  LocalAdmins
}