I'm trying to monitor a service, which normally uses the same IP as the agent. However in a few cases the IP is different.
To make this easier to configure I want to use use templates with macro's. I'd like to create a macro inside this template called {$serviceIP} which has as default value the value of the {HOST.CONN} macro. (The reason for this is that if I'd use the {HOST.CONN} macro directly in the item key, I can no longer override it.)
However when I configure this for some reason the {$serviceIP} macro has no value. It simply contains the text {HOST.CONN}, instead of the IP...
How can I make this work as intended?
To make this easier to configure I want to use use templates with macro's. I'd like to create a macro inside this template called {$serviceIP} which has as default value the value of the {HOST.CONN} macro. (The reason for this is that if I'd use the {HOST.CONN} macro directly in the item key, I can no longer override it.)
However when I configure this for some reason the {$serviceIP} macro has no value. It simply contains the text {HOST.CONN}, instead of the IP...
How can I make this work as intended?
Comment