×
Back to OP5 Monitor FAQ
How to change the behavior of a check_command
Related to Copied
Changing the behavior of a check_command, change the way a service check works, edit a check_command, change check command functionality.
Problem Copied
- 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) Copied
- Go through the following steps:
-
Go to the Configuration panel by clicking on Manage -> Configure.
-
Select “Commands”:
-
Search for the check_command that you would like to edit. Here, we will change check_wmip_cpu to add support for NTLMv2.
-
Select the check_command in the drop-down menu.
-
Click “Go”:
- 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:
-
Add a new command_name in the empty field.
-
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"
- Press submit:
-
Click “Save” in the top right corner and go through the steps to make your change persistent.
-
Change the check_command option for any services that you would like to use this new check_command.
Related Articles Copied
- How to use the dollar sign ($) for variables in check_command_args
- Is it possible to set up a services or check_command with a $ in one of the arguments?
- How to add environment variables to naemon check_commands
["Geneos"]
["FAQ"]