---
title: "How to change the behavior of a check_command"
description: "Changing the behavior of a check_command involves editing or copying an existing command to modify its options or arguments. The process includes creating a new command based on the original, updating its command line, and applying it to relevant services."
url: "https://docs.itrsgroup.com/docs/faq/op5/4406111141521-op5-monitor-how-to-change-the-behavior-of-a-check-command/index.html"
---
## Related to

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

### Problem

- You have an existing check\_command you would like to tweak to something slightly different, such as adding a new option or argument to the check\_command.

### Possible Solution(s)

- Go through the following steps:

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

2. Select "Commands":

![1](https://docscdn.itrsgroup.com/faq/images/op5/4406111141521-inline-1-1.png)

3. Search for the check\_command that you would like to edit. Here, we will change check\_wmip\_cpu to add support for NTLMv2.

4. Select the check\_command in the drop-down menu.

5. Click "Go":

![2](https://docscdn.itrsgroup.com/faq/images/op5/4406111141521-inline-2-2.png)

6. 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](https://docscdn.itrsgroup.com/faq/images/op5/4406111141521-inline-3-3.png)

7. Add a new command\_name in the empty field.

8. 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"
```

9. Press submit:

![4](https://docscdn.itrsgroup.com/faq/images/op5/4406111141521-inline-4-4.png)

10. Click "Save" in the top right corner and go through the steps to make your change persistent.

11. Change the check\_command option for any services that you would like to use this new check\_command.

## Related Articles

- [How to use the dollar sign ($) for variables in check\_command\_args](https://docs.itrsgroup.com/docs/faq/op5/360020257473-op5-monitor-how-to-use-the-dollar-sign-for-variables-in-check-command-args/index.html)incheck_command_args-Question)
- [Is it possible to set up a services or check\_command with a $ in one of the arguments?](https://docs.itrsgroup.com/docs/faq/op5/360020062714-op5-monitor-is-it-possible-to-set-up-a-services-or-check-command-with-a-in-one-of-the-arguments/index.html)
- [How to add environment variables to naemon check\_commands](https://docs.itrsgroup.com/docs/faq/op5/360003060757-op5-monitor-how-to-add-environment-variables-to-naemon-check-commands/index.html)


