naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
153 stars 63 forks source link

service_check_timeout_state=u is not honored #260

Closed bjornfro closed 6 years ago

bjornfro commented 6 years ago

When service check times out it seems CRITICAL is returned no matter if UNKNOWN is set in naemon.cfg by:

# SERVICE CHECK TIMEOUT STATE
# This setting determines the state Naemon will report when a
# service check times out - that is does not respond within
# service_check_timeout seconds.  This can be useful if a
# machine is running at too high a load and you do not want
# to consider a failed service check to be critical (the default).
# Valid settings are:
# c - Critical (default)
# u - Unknown
# w - Warning
# o - OK
service_check_timeout_state=u

This with Naemon 1.0.6.

sni commented 6 years ago

is this a plain naemon? Or is there for example mod-gearman involved?

bjornfro commented 6 years ago

Yes, mod-gearman is involved.

On Fri, Sep 28, 2018 at 3:47 PM Sven Nierlein notifications@github.com wrote:

is this a plain naemon? Or is there for example mod-gearman involved?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naemon/naemon-core/issues/260#issuecomment-425440985, or mute the thread https://github.com/notifications/unsubscribe-auth/AClpDt-Cmt9dFU1wEx9gk2iaFE-1yxaDks5ufih2gaJpZM4WqPy- .

sni commented 6 years ago

mod-gearman does not have this feature and will return unknown on timeouts. You might want to open a feature request over at https://github.com/sni/mod_gearman

bjornfro commented 6 years ago

Ok, but I get critical as return code.

Regards, Björn

On Mon, 1 Oct 2018, 09:47 Sven Nierlein, notifications@github.com wrote:

mod-gearman does not have this feature and will return unknown on timeouts. You might want to open a feature request over at https://github.com/sni/mod_gearman

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naemon/naemon-core/issues/260#issuecomment-425817629, or mute the thread https://github.com/notifications/unsubscribe-auth/AClpDtWceO7O0x_BKB6OCfUyNzuPSS5pks5ugch1gaJpZM4WqPy- .

sni commented 6 years ago

sry, checked again. This feature does indeed exist already. You can set it in the worker.cfg timeout_return=3. It defaults to critical.

bjornfro commented 6 years ago

Oh, missed that feature. I guess I should have found it. Thanks!

On Mon, Oct 1, 2018 at 10:00 AM Sven Nierlein notifications@github.com wrote:

sry, checked again. This feature does indeed exist already. You can set it in the worker.cfg timeout_return=3. It defaults to critical.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naemon/naemon-core/issues/260#issuecomment-425820663, or mute the thread https://github.com/notifications/unsubscribe-auth/AClpDnd7LJop2hkP0dnpoTM-Z4mZyc-0ks5ugcuWgaJpZM4WqPy- .