Connect Web Browser with port

Started by CMelchior, November 17, 2021, 11:52:51 PM

Previous topic - Next topic

CMelchior

In my objects some of them require specific IP ports for web management. I've modified the object communications section with the correct port (8080) but I'm struggling to get the connect web browser tool to open the IP with port.

This is the command in the Object Tools:
http://%u

What variable do I add to get the port appended to this?

Is it better to make a tool specific to this unit with the port specified like this:
http://%u:8080

I was trying to find a comprehensive list of all the variables but I could not find it.

Thanks.

Filipp Sudanov

You can do it like this:
http://%u:%{www_port:80}

This will take value of node's custom attribute "www_port". If there's no such custom attribute on a node, default value will be taken.

Macros used in object tools are described here:
https://www.netxms.org/documentation/adminguide/object-management.html?highlight=object%20tool#macro-substitution