check_http => No route to host
Posted: Mon Nov 04, 2013 11:15 am
Hi all,
On nagios, I have several services which are critical and with message ‘No route to host’.
(Services are checked with check_http).
However, I can access to the http page (that I check) so the critical error is wrong (services working fine).
In addition, when I manually check the service from the nagios machine => test is OK:
./check_http -H <hostename> -p <port> -u '<uri>'
The results is : HTTP OK HTTP/1.1 200 OK - 18329 bytes in 8.534 seconds |time=8.533538s;;;0.000000 size=18329B;;;0
I also can ping the service.
In my conf, I defined (fields between <> are well informed):
Note : I also defined the host of theses services and all is ok (manually and on nagios)
Commands :
Complement:
Other services (on another hosts) are checked in the same way and everything works fine.
On another machine, all is ok. Nagios versions are different between these two machines.
Nagios 3.0.6 => No route to host problem
Nagios 3.4.4=> All is OK
Maybe problem comes from here?
Does anyone knows why when I test manually, it works fine while on nagios i have the "no route to host" message?
Thanks in advance for your helps
Corentin
On nagios, I have several services which are critical and with message ‘No route to host’.
(Services are checked with check_http).
However, I can access to the http page (that I check) so the critical error is wrong (services working fine).
In addition, when I manually check the service from the nagios machine => test is OK:
./check_http -H <hostename> -p <port> -u '<uri>'
The results is : HTTP OK HTTP/1.1 200 OK - 18329 bytes in 8.534 seconds |time=8.533538s;;;0.000000 size=18329B;;;0
I also can ping the service.
In my conf, I defined (fields between <> are well informed):
Code: Select all
define service{
use geonetwork-productaccess-alive
host_name <hostname>
service_description <service description>
contacts nagios-admin
check_command check_http!-p <port> -u ‘<uri>’
action_url <hostname><uri>
}
Code: Select all
define host{
use generic-geonetwork-host
host_name <hostname>
parents localinternetgateway (well define)
address <IP address>
check_command check_http_with_port!<port>
contact nagios-admin
action_url http:// <hostname>:<port>
}Code: Select all
define command {
command_name check_http_with_port
command_line $USER1$/check_http -I $HOSTADDRESS$ -p $ARG1$ -f follow
}
Other services (on another hosts) are checked in the same way and everything works fine.
On another machine, all is ok. Nagios versions are different between these two machines.
Nagios 3.0.6 => No route to host problem
Nagios 3.4.4=> All is OK
Maybe problem comes from here?
Does anyone knows why when I test manually, it works fine while on nagios i have the "no route to host" message?
Thanks in advance for your helps
Corentin