Ad Widget

Collapse

Importing Templates in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sven Kodali
    Junior Member
    • May 2023
    • 20

    #1

    Importing Templates in Zabbix

    Hi,

    I have been having very little success importing community templates in Zabbix...

    I need to monitor an Aruba switch, so I found the below link:


    Which leads me to the next link:
    https://github.com/zabbix/community-...acking_(module)

    I go to the 6.0 folder (currently running 6.4), and copy the raw contents to a text file, save as type .yaml.


    In Zabbix, I click Import template and choose the .yaml file. I then get the following error:
    • Invalid parameter "/3/key_": must contain at least one low-level discovery macro.
    ​Why are there invalid parameters? Is this not compatible with my version of Zabbix? Is there any way I can fix this?
  • jalu
    Junior Member
    • Jun 2023
    • 1

    #2
    Hi,

    Did you solve this?

    I have the same issue

    - Jacob

    Comment

    • SanMonitor
      Member
      • Aug 2022
      • 48

      #3
      Hey Sven, in the past I also had trouble importing templates and weirdly enough I fixed it by just changing the version on the 2nd line in the .yaml file (ex. changing 6.0 with 6.4)

      Comment

      • GoempieK
        Junior Member
        • Oct 2023
        • 1

        #4
        Did you ever get this fixed?
        I have the same problem.

        Thanks

        Comment

        • karel_b
          Junior Member
          • Feb 2017
          • 7

          #5
          This problem is caused, if the template have same Item prototypes with keys that dooes not contain some LLD macro e.g. {#SOMETHING}.
          Now there must be at least one LLD macro present in item protoype key.

          Comment

          • karel_b
            Junior Member
            • Feb 2017
            • 7

            #6
            Typo above, there has to be "some Item prototype.

            Full fixed text below:
            This problem is caused, if the template have some Item prototypes with keys that does not contain some LLD macro e.g. {#SOMETHING}.
            Now there must be at least one LLD macro present in item protoype key. So item key for item prototype must be like item.key[{#SOMETHING}] now.​

            Comment

            • Polo
              Junior Member
              • Aug 2023
              • 5

              #7
              Hey Karel_b,

              every Key has this kind of Syntax:

              For Example:

              uuid: 439384c550a146a48a4ac8715834271f
              name: FanState
              type: SNMP_AGENT
              snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1. 4]'
              key: hpicfFanState
              delay: 1h
              lifetime: 0d
              item_prototypes:
              -
              uuid: ee8ee2ac98114c0da374e2e2853274a2
              name: 'FanState $1'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.{#SNMPINDE X}'
              key: 'hpicfFanState[{#SNMPVALUE}.{#SNMPINDEX}]'
              valuemap:
              name: 'Aruba 2930F FanState'​

              Comment

              Working...