when Service-Sets are created the values of a service are usually inherited to the single hosts the service is assigned to. Here for instnace the Portnumber: 25009. At least i would expect so.
When I view the same Service assigned to the hosts the portnumber is missing. However the check itself is executed correctly with the port 25009:
‘/usr/lib64/nagios/plugins/check_tcp’ ‘-H’ ‘’ ‘-M’ ‘warn’ ‘-p’ ‘25009’ ‘-r’ ‘crit’ ‘-t’ ‘10’
The Icinga-Director View of the Service is missing the number.
Could you share a printscreen of the “Preview” tab in “resolved” mode? The “Services” tab is probably not configured to show the correct custom properties.
I think - to be confirmed by an expert - that you can have variables defined both at Service level (your case) and at Host level.
Icinga will try resolving the variable value (tcp_port in your case) first by looking at the closest object, then moving up. So in this case, tcp_port is being used by a Service object, is defined at Service level, and Icinga will use that value.
Now, your question is why Director doesn’t resolve the Service-level variable to show it in the Host definition. This would also need an expert to bring the answer.
What is really strange is that if your Service-level variable is defined within an imported Service Template, then the variable value does show in the Host window showing the Service…