Active checks

Active checks

This page lists Active check related articles.

 

Basic troubleshooting

Active checks are not easy to see with commands like cmk -D or cmk -vvv. Those commands do not show which active checks are actually being used for a host.

If you need to confirm whether an active check is applied, the easiest way is to look at the core config:

OMD[mysite]:~$ cmk -N

From the help text

-N, --nagios-config Outputs the Nagios configuration. You may optionally add a
list of hosts. In that case the configuration is generated only for that
hosts (useful for debugging).

 

Then filter for what you are looking for, for example:

OMD[mysite]:~$ cmk -N | grep smb

 

Example output

check_command check_mk_active-disk_smb!myshare -H overclock --levels 85.0 95.0 -u sambauser --password-reference xxx :/omd/sites/mysite/var/check_mk/core/helper_config/latest/stored_passwords command_line /omd/sites/mysite/lib/python3/cmk/plugins/smb/libexec/check_disk_smb $ARG1$ command_name check_mk_active-disk_smb

 

This tells you:

  • the active check exists

  • what command is used

  • which parameters are passed

 

Related articles