Ad Widget

Collapse

Simple concatenate - Lost

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jdoggy31
    Member
    • Feb 2019
    • 39

    #1

    Simple concatenate - Lost

    Hello I have a template that has a few Items that I need to concatenate together - This seams simple but I just can make it work. It looks like I need a calculated item that uses the function concat. Any help would be a life saver.

    Template Name: Concat-Test
    Iteam 1 Key: TestKey1
    Itean 2 Key: TestKey2
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    concat(last(\Concat-Test\TestKey1),last(\Concat-Test\TestKey2))

    Comment

    • jdoggy31
      Member
      • Feb 2019
      • 39

      #3
      Thank you - when i try this i get

      Details Cannot update item
      • Invalid parameter "/1/params": incorrect expression starting from "concat(last(\Concat-Test\TestKey1),last(\Concat-Test\TestKey2))".
      Zabbix Ver 6.4.7

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Im sorry.... "concat(last(/Concat-Test/TestKey1),last(/Concat-Test/TestKey2))"
        or try "concat(last(//TestKey1),last(//TestKey2))"
        Please refer to the documentation for the correct syntax. Everyone makes mistakes.... :-(

        Comment

        • jdoggy31
          Member
          • Feb 2019
          • 39

          #5
          Well - I cant tell you how many times i referred the docs and completely missed it. it was indeed that I was \ when i should be /. THANK YOU!!!

          Comment

          Working...