Centreon Web version:
18.10.2
Centreon Engine version:
centreon-engine-18.10.0
Centreon Broker version:
centreon-broker-cbd-18.10.1
OS:
CentOS7
Steps to reproduce the issue:
Describe the results you received:
The macros are not appearing in the web interface for the new services when you select your template
Describe the results you expected:
Macros appears when you select your template
Additional information you think important (e.g. issue happens only occasionally):
If you add a centreon created template to the template you create, all the macros now appears in the interface when you select this template for your service (the macros from the centreon template and the macros from the custom one you created)
can't reproduce.
Can you describe your command?
Sure, you can add any command, even copy ones from the base one like base_centreon_ping
Example :
1/ Add new checks command called 'testcmd':
$USER1$/check_icmp -H $HOSTADDRESS$ -n $_SERVICEPACKETNUMBER$ -w $_SERVICEWARNING$ -c $_SERVICECRITICAL$
Save the commande
Create a service template called 'templatecmd' with only the command testcmd.
The macros are appearing
Save the template
Create a service, add the template templatecmd
Macros are not appearing in the service.
Hi @lpinsivy,
I can confirm that.
Something is going wrong in the getMacros function of centreonService.class.php.
It doesn't go to the latest template.
You can test it with the "generic-passive-service-custom" that will not show you the two dummy macros (base-generic >= 3.2.0).
Works fine for host by the way.
Same situation is on version 18.10.3
Macros on Service Checks will not shown, macros from Host Checks are shown correctly. Any news about this case?
Hi,
This will be fixed in 18.10.x and 19.04.x versions
Regards,
Hi,
Please open this case, the patch doesn't work.
My configuration is the following:
service -> template 1 -> template 2
If you add you check command on template 2 and defined values for macros on this template, you can't see them on the service...
Hi,
It works!
Thanks
Most helpful comment
Hi @lpinsivy,
I can confirm that.
Something is going wrong in the getMacros function of centreonService.class.php.
It doesn't go to the latest template.
You can test it with the "generic-passive-service-custom" that will not show you the two dummy macros (base-generic >= 3.2.0).
Works fine for host by the way.