Ad Widget

Collapse

Using the '$' sign in macro values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arkadyf
    Junior Member
    • Sep 2018
    • 1

    #1

    Using the '$' sign in macro values

    Hi,

    I've been trying to use the $ sign in macro values (the dollar sign is part of a constant string), but they get replaced with a random number each time.

    I tried escaping the sign using different techniques - using '\' or '\\', single \ double quoting the string and using double $$.
    Unfortunately nothing works for me, is anyone familiar with the matter?

    Thanks
  • daveoc
    Junior Member
    • Apr 2019
    • 1

    #2
    any resolution for this one ?

    Comment

    • Grzegorz Wiktorowski
      Junior Member
      • Nov 2018
      • 5

      #3
      These days I created the item with:

      perf_counter["\{$MSSQL}:General Statistics\User Connections"]

      and use macro substitution on the host level:

      {$MSSQL} -> MSSQL$SQL03

      Zabbix acquires the proper data and no errors are reported in the log.

      Comment

      Working...