Check_http check command does not exist

Hello everybody,

I have seen that this topic has been discussed several times and for some there was a solution, but unfortunately it doesn’t work for me.

I made a clone of check_http through Icinga2 & Director because I need some arguments in my checks.

This is not the problem, but rather that it doesn’t matter which Check_command I clone that I always come to the result with the same error message that this Check command does not exist.

Is there a sustainable solution for this?
Thanks in advance.

System Info:

icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.4-1)

Copyright © 2012-2020 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: Ubuntu
Platform version: 20.04.1 LTS (Focal Fossa)
Kernel: Linux
Kernel version: 5.4.0-42-generic
Architecture: x86_64

Build information:
Compiler: GNU 8.4.0
Build host: runner-ltrjqz9n-project-298-concurrent-0

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid

Hi,

could you show us the command definition of the copy? And maybe more informaiton about your setup?
Because my suggestions is that the path to the script is wrong or you set a zone or a wrong zone to the comand. As a result this definition is not synced to the satellites or agent (if installed).

greets

I have since been able to solve the problem.
It just wasn’t clear to me that you have to run the commands all under “director-global” so that they work.

Many greetings