[Check_mk (english)] changing timeout for Classical active check

Hi,

Did anyone ever need to change timeout for classic active check?

Best Regards,

Michał Woźniak

Hi,

I thought that my last message will be recognized as reply to my previous topic.

I asked there how to change timeout for classic active checks, but get no response.

I cannot find that option in WATO.

Can anyone help please?

···

Best Regards,

Michał

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Michał Woźniak
Sent: Friday, January 5, 2018 11:47 AM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Ten nadawca nie przeszedł testów wykrywających oszustwa i może nie być osobą, którą wydaje się być. Dowiedz się więcej o podszywaniu się

Opinia

Hi,

Did anyone ever need to change timeout for classic active check?

Best Regards,

Michał Woźniak

Hi Michal,

I do not think that there is such a setting. In my experience classical Nagios checks have their timeout specified via command line parameter. As an example check_nrpe or check_http
have the -t parameter for this, which always has a default value if not specified.

What exactly are you trying to achieve?

···

Mit freundlichem Gruß/kindest regards

Tobias

Von: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
Im Auftrag von Michal Wozniak
Gesendet: Montag, 8. Januar 2018 15:23
An: Michał Woźniak; checkmk-en@lists.mathias-kettner.de
Betreff: Re: [Check_mk (english)] changing timeout for Classical active check

Hi,

I thought that my last message will be recognized as reply to my previous topic.

I asked there how to change timeout for classic active checks, but get no response.

I cannot find that option in WATO.

Can anyone help please?

Best Regards,

Michał

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Michał Woźniak
Sent: Friday, January 5, 2018 11:47 AM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Ten nadawca nie przeszedł testów wykrywających oszustwa i może nie być osobą, którą wydaje się być. Dowiedz się więcej o podszywaniu się

Opinia

Hi,

Did anyone ever need to change timeout for classic active check?

Best Regards,

Michał Woźniak

Hi Tobias,

Thank you very much for reply.

I’m trying to run script which takes longer than 30 seconds to execute.

In nagios service_check_timeout is set to 60s, so it is not taken into consideration by CheckMK.

In CheckMK in service detail I can see “Service check duration 30.x sec”. I have no idea from where that time comes from.

I had Nagios installation some time ago, where I was able to successfully set check timeout to 120seconds.

I use check_nrpe. I had timeout there set to 120s. When I set this timeout to less than 30s it has precedence.

···

Best Regards,

Michał

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Tobias Grünewald
Sent: Monday, January 8, 2018 4:49 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Hi Michal,

I do not think that there is such a setting. In my experience classical Nagios checks have their timeout specified via command line parameter. As an example check_nrpe or check_http
have the -t parameter for this, which always has a default value if not specified.

What exactly are you trying to achieve?

Mit freundlichem Gruß/kindest regards

Tobias

Von: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
Im Auftrag von Michal Wozniak
Gesendet: Montag, 8. Januar 2018 15:23
An: Michał Woźniak;
checkmk-en@lists.mathias-kettner.de
Betreff: Re: [Check_mk (english)] changing timeout for Classical active check

Hi,

I thought that my last message will be recognized as reply to my previous topic.

I asked there how to change timeout for classic active checks, but get no response.

I cannot find that option in WATO.

Can anyone help please?

Best Regards,

Michał

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Michał Woźniak
Sent: Friday, January 5, 2018 11:47 AM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Ten nadawca nie przeszedł testów wykrywających oszustwa i może nie być osobą, którą wydaje się być. Dowiedz się więcej o podszywaniu się

Opinia

Hi,

Did anyone ever need to change timeout for classic active check?

Best Regards,

Michał Woźniak

Thank you for reply.

You are right!

That timeout was on target host side(NSclient++).

Thank for the answer. Topic closed.

Pozdrawiam,

Michał

···

From: Jam Mulch [mailto:spammagnet10@gmail.com]
Sent: Thursday, January 11, 2018 12:45 PM
To: Michał Woźniak
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Google suggests there may be a nrpe.cfg or something similar on the target host.

You should probably try to telnet from the check_mk server to the target host
port 6555 and see how long it takes to timeout. If it times out too fast, it might
be the nrpe config on the target host.

If it takes longer to timeout using telnet than check_mk, maybe you could try adding something
like ‘-t 60’ to your configured command line in check_mk for that check.

You can also run check_nrpe manually to test the timeouts from your check_mk server.

running /omd/sites//lib/nagios/plugins/check_nrpe returns:


Incorrect command line arguments supplied

NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad (nagios@nagios.org)
Version: 2.13
Last Modified: 11-11-2011
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

Usage: check_nrpe -H [-n] [-u] [-p ] [-t ] [-c ] [-a <arglist…>]

Options:
-n = Do no use SSL
-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
= The address of the host running the NRPE daemon
[port] = The port on which the daemon is running (default=5666)
[timeout] = Number of seconds before connection times out (default=10)
[command] = The name of the command that the remote daemon should run
[arglist] = Optional arguments that should be passed to the command. Multiple
arguments should be separated by a space. If provided, this must be
the last option supplied on the command line.

Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to this plugin. This allows you
to execute plugins on remote hosts and ‘fake’ the results to make Nagios think
the plugin is being run locally.


On 1/11/2018 5:51 AM, Michał Woźniak wrote:

Hi Tobias,

Thank you very much for reply.

I’m trying to run script which takes longer than 30 seconds to execute.

In nagios service_check_timeout is set to 60s, so it is not taken into consideration by CheckMK.

In CheckMK in service detail I can see “Service check duration 30.x sec”. I have no idea from where that time comes from.

I had Nagios installation some time ago, where I was able to successfully set check timeout to 120seconds.

I use check_nrpe. I had timeout there set to 120s. When I set this timeout to less than 30s it has precedence.

Best Regards,

Michał

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Tobias Grünewald
Sent: Monday, January 8, 2018 4:49 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Hi Michal,

I do not think that there is such a setting. In my experience classical Nagios checks have their timeout specified via command line parameter. As an example check_nrpe or check_http
have the -t parameter for this, which always has a default value if not specified.

What exactly are you trying to achieve?

Mit freundlichem Gruß/kindest regards

Tobias

Von: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
Im Auftrag von Michal Wozniak
Gesendet: Montag, 8. Januar 2018 15:23
An: Michał Woźniak;
checkmk-en@lists.mathias-kettner.de
Betreff: Re: [Check_mk (english)] changing timeout for Classical active check

Hi,

I thought that my last message will be recognized as reply to my previous topic.

I asked there how to change timeout for classic active checks, but get no response.

I cannot find that option in WATO.

Can anyone help please?

Best Regards,

Michał

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Michał Woźniak
Sent: Friday, January 5, 2018 11:47 AM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] changing timeout for Classical active check

Ten nadawca nie przeszedł testów wykrywających oszustwa i może nie być osobą, którą wydaje się być. Dowiedz się więcej o podszywaniu się

Opinia

Hi,

Did anyone ever need to change timeout for classic active check?

Best Regards,

Michał Woźniak

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)