zabbix_export:
  version: '7.0'
  host_groups:
    - uuid: f2481361f99448eea617b7b1d4765566
      name: 'Discovered hosts'
    - uuid: 098f6bcd462143738ade4e832627b4f6
      name: test
  hosts:
    - host: test
      name: test
      groups:
        - name: test
      interfaces:
        - interface_ref: if1
      items:
        - name: trap
          type: TRAP
          key: trap
          delay: '0'
          history: 90d
          triggers:
            - expression: last(/test/trap)<>0
              name: 'Trigger trapper'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: testTag
                  value: '{ITEM.VALUE}'
      discovery_rules:
        - name: discovery
          type: TRAP
          key: discovery
          delay: '0'
          lifetime: 30d
          enabled_lifetime_type: DISABLE_NEVER
          item_prototypes:
            - name: 'item prototype {{#ID}.regrepl(0, 100)}'
              type: TRAP
              key: 'trap[{{#ID}.regrepl(0, 100)}]'
              delay: '0'
              history: 90d
              trigger_prototypes:
                - expression: 'last(/test/trap[{{#ID}.regrepl(0, 100)}])<>0'
                  name: 'trigger prototype {#ID}'
                  manual_close: 'YES'
          graph_prototypes:
            - name: 'graph prototype {#ID}'
              graph_items:
                - color: 1A7C11
                  item:
                    host: test
                    key: 'trap[{{#ID}.regrepl(0, 100)}]'
          host_prototypes:
            - host: 'Host prototype {#ID}'
              name: 'Host prototype {#ID}'
              group_links:
                - group:
                    name: 'Discovered hosts'
              group_prototypes:
                - name: 'Host prototype {#ID}'
          lld_macro_paths:
            - lld_macro: '{#LLD_MACRO}'
              path: $.1
      httptests:
        - name: 'test web scenario'
          steps:
            - name: homepage
              url: 'http://zabbix.com'
      inventory_mode: DISABLED
  graphs:
    - name: 'test graph'
      graph_items:
        - sortorder: '1'
          color: 1A7C11
          item:
            host: test
            key: trap
