Host down but service checks are 'OK'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Host down but service checks are 'OK'

Post by absarcompass »

Hi All,
I have an issue here, one of the added host is DOWN but some services check attached to it are still returning value OK on the webpage.
Even if i try to check service from CCM it returns error
OUTPUT: connect to address x.x.x.x and port bbbbb: No route to host
could not fetch information from server

command line has the same output.
But webpage suggests as under
Host_down_service_up.PNG
I have tried removing the host from service and restarting but it didn't help
Any idea where it might have been stucked? a lock file or something??

Thanks
You do not have the required permissions to view the files attached to this post.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host down but service checks are 'OK'

Post by absarcompass »

And my NagiosXI version is 5.2.7
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Host down but service checks are 'OK'

Post by Box293 »

Can you please post your nagios.cfg file.
absarcompass wrote:I have tried removing the host from service and restarting but it didn't help
How exactly did you do that?

Try this:

Go into CCM
Tools > Write Config Files
Click the Delete button
It will say "Successfully deleted all Host / Service Config Files"
Quick Tools > Apply Configuration
Click the Apply Configuration button

Does that fix the problem?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host down but service checks are 'OK'

Post by absarcompass »

Hi Box,
In order to solve the issue I have upgraded XI to 5.2.8, this delete host way around will work in new version as well?
I just remove Host assigned to service from ccm, write config, verify and then restarted.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Host down but service checks are 'OK'

Post by lmiltchev »

In order to solve the issue I have upgraded XI to 5.2.8, this delete host way around will work in new version as well?
Yes, it will work in the new version too.
I just remove Host assigned to service from ccm, write config, verify and then restarted.
Is your issue resolved now? Let us know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host down but service checks are 'OK'

Post by absarcompass »

Thanks lmiltchev,
there are errors in applying configuration, some hosts are missing from servicegroups and hostsgroups. I need to look into that first, I suppose and have to check who has made the changes :(
will let you guys know after that.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host down but service checks are 'OK'

Post by absarcompass »

Hi guys,
tried above said, didn't help
host is down but still services either have to be unknown or critical but certainly not OK
what could be the issue. there are no config errors when i write and verfiy in CCM
Host_down_services_OK.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Host down but service checks are 'OK'

Post by Box293 »

absarcompass wrote:host is down but still services either have to be unknown or critical but certainly not OK
I received your nagios.cfg and it gives the answer to your question.

Code: Select all

host_down_disable_service_checks=1
This directive means that once the host object goes into a HARD down state, the service checks for that host are no longer executed until the host returns to an UP status. Hence the services remain in their last state.

It's a good option to have enabled, if the host is down then why should we bother checking it's services as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host down but service checks are 'OK'

Post by absarcompass »

Thanks Box293,
That explains the issue.
Cheers :)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Host down but service checks are 'OK'

Post by mcapra »

Is it ok if I lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked