XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.5
    • Server (S)

      I have created a template which contains running an external script to check if a route change has been detected.
      We use redundant connections and want to monitor which connection is the active one. Therefore a script checks wich of two given IP addresses is found in a traceroute output.
      The following macros have been added in that template:

      {$IPROUTE1}
      {$IPROUTE1NAME}
      {$IPROUTE2}
      {$IPROUTE2NAME}

      The result of the external script can be:
      0 = error
      1 = route 1 active
      2 = route 2 active

      I wanted to use “value mapping” to translate the result to a more human readable result to show in “latest data”.
      Therefore I created this value mapping in the template:

      equals 0 = Error
      equals 1 = {$IPROUTE1NAME}
      equals 2 = {$IPROUTE2NAME}

      At some host I have these macros defined:

      {$IPROUTE1NAME} = Glasvezel
      {$IPROUTE2NAME} = NLIX

      The result is that in latest data of the host this is shown when route 1 is the active one:

      {$IPROUTE1NAME} (1)

      instead of the wanted/expected:

      Glasvezel (1)

      Can it be made possible to use macros in value mappings?

            wiper Andris Zeila
            JeffNL Jeff Bremer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: