Ad Widget

Collapse

Macros in calls do not work anymore

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gullevek
    Junior Member
    • Nov 2008
    • 22

    #1

    Macros in calls do not work anymore

    I have some calls in the form of net.tcp.port[{HOST.IP1},<PORT>]

    Since I upgraded to 3.0 I cannot get them to work anymore. In the call itself the Macro is not replaced anymore. It is still replaced in the title for the Trigger itself.

    When I turn debugging on I get the data below:
    <PORT>: target port
    <HOST NAME>: visible host name in the log
    <IP>: visible IP in the system

    12873:20160303:163630.582 In get_value() key:'net.tcp.port[{HOST.IP1},<PORT>]'
    12873:20160303:163630.582 In get_value_agent() host:'<HOST NAME>' addr:'<IP>' key:'net.tcp.port[{HOST.IP1},<PORT>]' conn:'unencrypted'
    12873:20160303:163630.582 Sending [net.tcp.port[{HOST.IP1},<PORT>]

    If I create a new entry and use a defined Macro from the host and eg call it {$HOSTIP} and set it to the IP of the target host, it works.

    A second example from the log:

    12877:20160303:163632.188 In substitute_key_macros() data:'net.tcp.port[{HOST.IP1},<PORT>]'
    12877:20160303:163632.188 In substitute_simple_macros() data:'{HOST.IP1}'
    12877:20160303:163632.188 End substitute_simple_macros() data:'{HOST.IP1}'
    12877:20160303:163632.188 End of substitute_key_macros():SUCCEED data:'net.tcp.port[{HOST.IP1},<PORT>]'
    12877:20160303:163632.188 In substitute_simple_macros() data:'10050'
    12877:20160303:163632.188 In get_value() key:'net.tcp.port[{HOST.IP1},<PORT>]'
    12877:20160303:163632.188 In get_value_agent() host:'<HOST NAME>' addr:'<IP>' key:'net.tcp.port[{HOST.IP1},<PORT>]' conn:'unencrypted'
    12877:20160303:163632.188 Sending [net.tcp.port[{HOST.IP1},<PORT>]
  • glebs.ivanovskis
    Senior Member
    • Jul 2015
    • 237

    #2
    Please read Upgrade notes carefully.

    Comment

    Working...