checkMK v2.2 - Where to find actual command used by checkMK for standard check

Hi All,

Where can we find the actual command that the ‘Check TCP port connection’ check is performing ?
The check indicates this in the UI:
Service check command check_mk_active-tcp!-p -H
We would like to simulate the check directly from the Linux server to see which part of the command could be causing the error message (unknown connect data) on the server being checked.

Also, for the same checks in v1.6 the Service check command shows the same command as above, but has a space between the ! and the -p. Is this only a display value for the UI?

Best regards,
Jacky

The command is $OMD_ROOT/lib/nagios/plugins/check_tcp -p -H

Hi r.sander,

Thanx for the quick reply. :+1:
We’ve run the command, from there, but unfortunately the person that has to check it on the server being checked has left for the day, so we’ll see what happened tomorrow.

I have an additional question regarding these types of checks. it looks like they are preformed from the checkMK server and not from the servers where the connections need to be checked. Is this indeed the case? If yes, is there something in the check we need to/can set so that the check is performed from the specific host and not from the checkMK server? If not, is there another check similar to this which can be used to perform these checks from the host and not from the checkMK server? (i.e. performed by the agent on the host in question)

Best regards,
Jacky

Look for “MRPE” in the Checkmk documenation.

1 Like

@r.sander … i have some follow-up questions regarding the MRPE option for the hosts, if you don’t mind …

  1. If we want to use one of the checks that is listed under here,
    image
    like the check_tcp check, can we copy the plugin file from the checkMK server to the host(s) where we want the check to be executed from by the agent and then add the command utilising that plugin file in the mrpe.cfg file as indicated in the documentation, or is more needed?
    JM: – no answer needed here … this seems to work fine with copy/paste & cfg entry :grinning:

  2. What is the added value to using this section
    image
    under the Agent Rules in the UI instead of adding the check command directly in the mrpe.cfg file on the host?

Best regards,
Jacky

To answer part 2: With this you have a central configuration. But this is only useful if you also use the agent updater.