Macro variable not working for check-mk 2.4

**CMK version:**OMD - Open Monitoring Distribution Version 2.4.0p21.cre
OS version:

Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS

**scenario:

  • I had custom perl script to get bgp (network) data status where i have put one simple rule** **“Classical active and passive Monitoring check” - used to work on check-mk 1.6
    **
    check_bgp.0.4.pl -H $_HOSTHOST_IP$ -v 3 -C xxxxx:xxxxxx:sha:xxxxxx:aes -p $_HOSTPEER_IP$

This same rule is not working on check-mk 2.4
i can see rule is present, but variable macro seems to be not working.

provide me solution on how to put variable or macro in check-mk 2.4

Hello,

The macro $_HOSTHOST_IP$ is not a standard macro, at least in the Checkmk Micro Core based sites. For CMC sites (pro, ult, cloud) that macro is likely $HOSTADDRESS$

Where do you define the $_HOSTPEER_IP$ macro? I am a very visual person, so if you can provide a redacted screenshot, that would help me understand.

I admit that I don’t have a Raw site currently stood up to check the macros against.

1 Like

Thank @briand for your prompt response.

My issue got fixed, by referring : Standard Macros in Nagios logics.

Glad to hear you got it!

Hello!

If one of the answers helped you solve your question, please mark it as the solution. This way, you thank the person who helped you and also indicate that the question has been resolved. This, in turn, helps others who come across the same question.

Thank you!