Ad Widget

Collapse

zabbix 6.4+ and new macro {$*.HOST} with default value <SET * HOST>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ph77
    Junior Member
    • Mar 2025
    • 4

    #1

    zabbix 6.4+ and new macro {$*.HOST} with default value <SET * HOST>

    I will explain problem on https://git.zabbix.com/projects/ZBX/...Frelease%2F7.0

    there is macro
    {$APACHE.STATUS.HOST} The hostname or IP address of the Apache status page host. <SET APACHE HOST>

    Our 99% servers are connecting to host with {HOST.CONN} but I am not able to configure default {$APACHE.STATUS.HOST} = {HOST.CONN} what I am doing wrong ? Is there any way how to make it without rewriting every template with this behavior, I noticed it changed in zabbix version 6.4

    Click image for larger version

Name:	image.png
Views:	163
Size:	61.7 KB
ID:	500230

    I am using zabbix 7.0.10 with Apache by HTTP template version 7.0-0

    thanks
    Pavel​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Using a macro as a value for another macro? I dont think it has ever been a an option(?)... If you want to use {HOST.CONN}, you should replace that {$APACHE.STATUS.HOST} with {HOST.CONN} in items...

    In that test window you have to give anyway a real value for testing...

    Comment

    • ph77
      Junior Member
      • Mar 2025
      • 4

      #3
      So rewrite all new templates ?

      Its very stupid change, dunno why we are not able to replace macro with another macro, especialy with global macro {HOST.CONN}, because in 99% case that HOST, especialy in HTTP template, is {HOST.CONN}, just option to add {HOST.CONN} ...

      hope there is some option how to do it without rewriting all new templates ...

      Comment

      • ph77
        Junior Member
        • Mar 2025
        • 4

        #4
        Nothing ? So there is no simple solution as MACRO = another MACRO ?

        Comment

        Working...