Host Down but Service is Up

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dino
Posts: 15
Joined: Wed Mar 27, 2013 8:50 am

Host Down but Service is Up

Post 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;;
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host Down but Service is Up

Post by abrist »

Can you "ping" the web server from the XI box?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Host Down but Service is Up

Post 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.
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.
dino
Posts: 15
Joined: Wed Mar 27, 2013 8:50 am

Re: Host Down but Service is Up

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host Down but Service is Up

Post 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".
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked