HTTP CRITICAL -Invalid HTTP responserecevied from host:

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby rhcekumaran » Mon Dec 03, 2012 11:06 pm

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
Last edited by rhcekumaran on Tue May 06, 2014 1:12 am, edited 2 times in total.
rhcekumaran
 
Posts: 4
Joined: Mon Dec 03, 2012 10:47 pm

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby scottwilkerson » Tue Dec 04, 2012 8:50 am

Can you send the check command you are using
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 18640
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby rhcekumaran » Tue Dec 04, 2012 11:32 pm

define service{
use generic-service
host_name http://stgdb.interaktco.com
service_description HTTPD
check_command check_http
notifications_enbled 0
}
rhcekumaran
 
Posts: 4
Joined: Mon Dec 03, 2012 10:47 pm

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby rhcekumaran » Tue Dec 04, 2012 11:36 pm

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
}
rhcekumaran
 
Posts: 4
Joined: Mon Dec 03, 2012 10:47 pm

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby sreinhardt » Wed Dec 05, 2012 12:48 pm

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
}
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sreinhardt
-fno-stack-protector
 
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby rhcekumaran » Wed Dec 05, 2012 10:47 pm

same error again.

Even i removed the http:// , same error is there.
I have changed the host name also ,no improvement.
rhcekumaran
 
Posts: 4
Joined: Mon Dec 03, 2012 10:47 pm

Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:

Postby sreinhardt » Thu Dec 06, 2012 12:57 pm

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
}
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sreinhardt
-fno-stack-protector
 
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm


Return to Community Support

Who is online

Users browsing this forum: No registered users and 23 guests