Page 1 of 2

Host down but service checks are 'OK'

Posted: Tue May 31, 2016 8:56 pm
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

Re: Host down but service checks are 'OK'

Posted: Tue May 31, 2016 8:59 pm
by absarcompass
And my NagiosXI version is 5.2.7

Re: Host down but service checks are 'OK'

Posted: Wed Jun 01, 2016 2:06 am
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?

Re: Host down but service checks are 'OK'

Posted: Wed Jun 01, 2016 4:36 pm
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.

Re: Host down but service checks are 'OK'

Posted: Wed Jun 01, 2016 4:55 pm
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.

Re: Host down but service checks are 'OK'

Posted: Wed Jun 01, 2016 5:19 pm
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.

Re: Host down but service checks are 'OK'

Posted: Wed Jun 01, 2016 6:02 pm
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

Re: Host down but service checks are 'OK'

Posted: Wed Jun 01, 2016 6:24 pm
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.

Re: Host down but service checks are 'OK'

Posted: Thu Jun 02, 2016 5:31 pm
by absarcompass
Thanks Box293,
That explains the issue.
Cheers :)

Re: Host down but service checks are 'OK'

Posted: Fri Jun 03, 2016 9:03 am
by mcapra
Is it ok if I lock this thread and mark the issue as resolved?