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
HTTP CRITICAL -Invalid HTTP responserecevied from host:
-
- Posts: 4
- Joined: Mon Dec 03, 2012 10:47 pm
HTTP CRITICAL -Invalid HTTP responserecevied from host:
Last edited by rhcekumaran on Tue May 06, 2014 1:12 am, edited 2 times in total.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:
Can you send the check command you are using
-
- Posts: 4
- Joined: Mon Dec 03, 2012 10:47 pm
Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:
define service{
use generic-service
host_name http://stgdb.interaktco.com
service_description HTTPD
check_command check_http
notifications_enbled 0
}
use generic-service
host_name http://stgdb.interaktco.com
service_description HTTPD
check_command check_http
notifications_enbled 0
}
-
- Posts: 4
- Joined: Mon Dec 03, 2012 10:47 pm
Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:
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
}
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:
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.
-
- Posts: 4
- Joined: Mon Dec 03, 2012 10:47 pm
Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:
same error again.
Even i removed the http:// , same error is there.
I have changed the host name also ,no improvement.
Even i removed the http:// , same error is there.
I have changed the host name also ,no improvement.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: HTTP CRITICAL -Invalid HTTP responserecevied from host:
Could you try and run the following command and see if returns correctly or continues to send errors.
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
/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.