Icinga2 acces host custom variabel from service

Hi
Thank you again.

It don’t work either:

[2023-09-18 15:29:13 +0200] critical/config: Error: Invalid field access (for value of type 'Service'): 'macro'
Location: in /etc/icinga2/zones.d/global-templates/services.conf: 2574:26-2574:76
/etc/icinga2/zones.d/global-templates/services.conf(2574):  if ( config =="sshd" && macro("$host.vars.my_var_check_service_sshd$") == 1 ) {
                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/etc/icinga2/zones.d/global-templates/services.conf(2575):                 vars.new_var = "My_value1"
/etc/icinga2/zones.d/global-templates/services.conf(2576):         } else {
[2023-09-18 15:29:13 +0200] critical/config: 170 errors