Back to OP5 Monitor FAQ

How to change the behavior of a check_command

Changing the behavior of a check_command, change the way a service check works, edit a check_command, change check command functionality.

Problem Copied

Possible Solution(s) Copied

  1. Go to the Configuration panel by clicking on Manage -> Configure.

  2. Select “Commands”:

1

  1. Search for the check_command that you would like to edit. Here, we will change check_wmip_cpu to add support for NTLMv2.

  2. Select the check_command in the drop-down menu.

  3. Click “Go”:

2

  1. It’s usually considered best practice not to change an existing check_command, but rather create a new one. Click “Copy” to do so. This will create a new command using the previous one as a template:

3

  1. Add a new command_name in the empty field.

  2. Edit the command_line to suit your needs. In our example, we will add the following to the command_line:

--extrawmicarg "--option=client ntlmv2 auth=Yes"
  1. Press submit:

4

  1. Click “Save” in the top right corner and go through the steps to make your change persistent.

  2. Change the check_command option for any services that you would like to use this new check_command.

["Geneos"] ["FAQ"]

Was this topic helpful?