Page 1 of 1

Host Down but Service is Up

Posted: Fri Apr 05, 2013 9:51 pm
by dino
Hi,

Is there a possible host check on my problem below.

the ip address and the host url of the application is not able to ping from our company network, not sure maybe it was blocked or something, however the service is up and able to access the system using the host ip and host url. is there any way to bypass the check on host because the hosts shows is down thou the application service is up.

tested the check_host_alive and check_host_alive_http.

Testing check from command line...

COMMAND: /usr/local/nagios/libexec/check_icmp -H 10.163.181.128 -w 3000.0,80% -c 5000.0,100% -p 5
OUTPUT: CRITICAL - 10.163.181.128: rta nan, lost 100%|rta=0.000ms;3000.000;5000.000;0; pl=100%;80;100;;

Re: Host Down but Service is Up

Posted: Mon Apr 08, 2013 9:58 am
by abrist
Can you "ping" the web server from the XI box?

Re: Host Down but Service is Up

Posted: Mon Apr 08, 2013 10:01 am
by sreinhardt
The best way to always show a host as up, is to use the check_dummy command and supply arg1 as 0. More than likely your service is showing up, because they stop checking when a host is considered down. If the last state was OK I believe it should continue to show as OK until another check is performed.

Re: Host Down but Service is Up

Posted: Mon Apr 08, 2013 2:00 pm
by dino
Hi,

As stated the host server is not able to ping from the xi server due to firewall set, however the web service is up when u access from the url thru browsers.

I will try your suggestion to use check_dummy but you mention that the service will stop checking when the host is down. Only wanted to preform checks on the app service and bypass the host checks and to ensure that the service is being checked.

Is check_dummy can be set from CCM?

Thanks.

Re: Host Down but Service is Up

Posted: Mon Apr 08, 2013 2:18 pm
by abrist
Yes. Go to the CCM --> Hosts --> select the host you wish to set check_dummy on --> In the "check command" dropdown choose check_dummy --> Set $ARG1$ to 0

This will always force the host to be considered "UP".