Page 1 of 1

Check service status with disable host

Posted: Wed Apr 03, 2019 2:49 am
by schakal
Hi

At first I'm sorry for my language - it is not perfect :)

I'm trying to configure Nagios for monitoring ca 50 printers (counters, errors, consumables, etc).
It is work but...
If user turn off printer I have only status "External command error: Timeout: No Response from x.x.x.x:161. "
I want to see last readed status.
Host can be (it will be good) active / disactive but services need to see at OK.
I was try to change timeouts, passive mode, timeout state - and nothing.
When I change timeout time I have a status ok but info "timeout".
Is there a possibility to change status of service (or not) but status information not if host/service is not active?

Thank you
Regards
Robert

Re: Check service status with disable host

Posted: Wed Apr 03, 2019 11:19 am
by benjaminsmith
Hi @Robert,

So you have a printer (i.e. host) and related service checks (counters, errors, consumables,etc), and if the host is off (i.e. down state) and you're running Nagios Core 4.1 or higher, it's possible to disable those service checks when the printer is powered down by setting the following option in the main configuration file.

Define in /usr/local/nagios/etc/nagios.cfg:

Code: Select all

host_down_disable_service_checks=1
Nagios will need to continue with host checks and the host status will be down until it comes back online.

Please let me know if this answers you're question or not.