Ad Widget

Collapse

Import/Export not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misteric
    Junior Member
    • Feb 2023
    • 11

    #1

    Import/Export not working

    Hi all!
    There was a problem transferring templates from server to server.

    Server versions are the same.

    I am exporting a template. Then I try to import it, but I get an error.
    Help me to understand.​



    Zabbix 6.4.0beta5.


    Click image for larger version

Name:	image.png
Views:	393
Size:	106.1 KB
ID:	459375

    Click image for larger version

Name:	image.png
Views:	245
Size:	30.9 KB
ID:	459376


    Code:
    zabbix_export:
      version: '6.4'
      date: '2023-02-13T10:27:38Z'
      template_groups:
        -
          uuid: 971ccde5ba014f52a93aaa94448aff79
          name: 'Couchbase hosts'
      templates:
        -
          uuid: 7b644194e5a8437fb44c8255c9baa17a
          template: 'Couchbase template'
          name: 'Couchbase template'
          description: 'Мониторинг критических элементов couchbase'
          groups:
            -
              name: 'Couchbase hosts'
          items:
            -
              uuid: 154511dca68c4ba98b59db3c182ed0ec
              name: 'Couchbase cluster membership'
              key: 'getStats[clusterMembership]'
              delay: 30s
              trends: '0'
              value_type: TEXT
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase cluster status'
              triggers:
                -
                  uuid: 5e1fdb6bd17141e2baaaf022ec6043f8
                  expression: 'find(/Couchbase template/getStats[clusterMembership],,"regexp","active")<>1'
                  name: 'Couchbase on {HOST.NAME} out of cluster'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 3006a877b823472f80ed6bcbfbbf7dd9
              name: 'Couchbase GET stats'
              key: 'getStats[interestingStats.cmd_get]'
              delay: 30s
              value_type: FLOAT
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase cluster status'
            -
              uuid: 4290a4232be84169ac79dfabacd3906c
              name: 'Couchbase object count'
              key: 'getStats[interestingStats.curr_items]'
              delay: 30s
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase cluster status'
            -
              uuid: 9ca0204151a647d2a87cffe25d805269
              name: 'Couchbase OPS'
              key: 'getStats[interestingStats.ops]'
              delay: 30s
              value_type: FLOAT
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase cluster status'
            -
              uuid: 9feff92d175d4c0da43bf44a1c96d1f6
              name: 'Couchbase node status'
              key: 'getStats[status]'
              delay: 30s
              trends: '0'
              value_type: TEXT
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase cluster status'
              triggers:
                -
                  uuid: 6ce077ef954a4065a169fe3488f62c49
                  expression: 'find(/Couchbase template/getStats[status],,"regexp","healthy")<>1'
                  name: 'Couchbase on {HOST.NAME} feels bad'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 2bc5e2cd02c247b387b734d3fb969395
              name: 'Couchbase epmd port'
              key: 'net.tcp.port[,4369]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: a739e23dc62f4299aeb2a64403124e88
                  expression: 'last(/Couchbase template/net.tcp.port[,4369])=0'
                  name: 'Couchbase epmd on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 97584118f8f04c1987c73221fa76fe3a
              name: 'Couchbase rest port'
              key: 'net.tcp.port[,8091]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: e60d1a157cea49468d4ae688bcb551e7
                  expression: 'last(/Couchbase template/net.tcp.port[,8091])=0'
                  name: 'Couchbase HTTP on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: bb044b4e165844669454ae31b8a449d6
              name: 'Couchbase capi port'
              key: 'net.tcp.port[,8092]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: 28e97e4ae6b14cd4bdf5868152c47ccd
                  expression: 'last(/Couchbase template/net.tcp.port[,8092])=0'
                  name: 'Couchbase capi on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: df6b4d27ef944e14a2b0909bddff57f6
              name: 'Couchbase query port'
              key: 'net.tcp.port[,8093]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: 8d916c941915424f94d3a27af7e983db
                  expression: 'last(/Couchbase template/net.tcp.port[,8093])=0'
                  name: 'Couchbase query service on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 7698709f012a409f9479ab854e9d6000
              name: 'Couchbase FullTextSearch port'
              key: 'net.tcp.port[,8094]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: d5e10730637a47688921ad28e022286d
                  expression: 'last(/Couchbase template/net.tcp.port[,8094])=0'
                  name: 'Couchbase FTS on {HOST.NAME} down'
                  priority: WARNING
                  manual_close: 'YES'
            -
              uuid: e025696a71f64d3d997b837d7eaf8364
              name: 'Couchbase indexer_admin port'
              key: 'net.tcp.port[,9100]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: fa3a309629ad4a3881de7442e8f86c6b
                  expression: 'last(/Couchbase template/net.tcp.port[,9100])=0'
                  name: 'Couchbase indexer_admin on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 67473697a2d94ad29ce735df7d47cfa3
              name: 'Couchbase indexer_scan port'
              key: 'net.tcp.port[,9101]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: bd23679348db40938d1537dace168898
                  expression: 'last(/Couchbase template/net.tcp.port[,9101])=0'
                  name: 'Couchbase indexer_scan on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 960d3c08b4fe4f07b713bbcdfb330bd7
              name: 'Couchbase indexer_http port'
              key: 'net.tcp.port[,9102]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: b62956050aba4537996acec5a5719392
                  expression: 'last(/Couchbase template/net.tcp.port[,9102])=0'
                  name: 'Couchbase indexer_http on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 5ca3f1a4fe964d4284b99db27a6a59ca
              name: 'Couchbase index builder port'
              key: 'net.tcp.port[,9103]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: 1b3cbed4eae34bfa82fe4265f8a6620f
                  expression: 'last(/Couchbase template/net.tcp.port[,9103])=0'
                  name: 'Couchbase index builder on {HOST.NAME} down'
                  status: DISABLED
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 99f57a4e310a4cc7a6e99f5405c59790
              name: 'Couchbase index maintenance port'
              key: 'net.tcp.port[,9105]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: 03c9a493b0fd4b44a1e0cb95f5905f9d
                  expression: 'last(/Couchbase template/net.tcp.port[,9105])=0'
                  name: 'Couchbase index maintenance service on {HOST.NAME} down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: af0fb8d2fc7447b190cdaac3082387ed
              name: 'Couchbase GSI (Global Secondary Index) port'
              key: 'net.tcp.port[,9999]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
              triggers:
                -
                  uuid: 549887dde57647aba8f2f9951e127023
                  expression: 'last(/Couchbase template/net.tcp.port[,9999])=0'
                  name: 'Couchbase GSI (Global Secondary Index) service down'
                  priority: DISASTER
                  manual_close: 'YES'
            -
              uuid: 28c8a58119d8411d99854762d43f98c1
              name: 'Couchbase Internal Bucket port'
              key: 'net.tcp.port[,11209]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
            -
              uuid: 6d7221cfc5ad4070a7d87dbda79af9c3
              name: 'Couchbase External Bucket port'
              key: 'net.tcp.port[,11210]'
              delay: 30s
              preprocessing:
                -
                  type: DISCARD_UNCHANGED
                  parameters:
                    - ''
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
              request_method: POST
              tags:
                -
                  tag: Application
                  value: 'Couchbase TCP port check'
      triggers:
        -
          uuid: 2faf181458b44aaa814d939270005d61
          expression: 'last(/Couchbase template/net.tcp.port[,11209])=0 or last(/Couchbase template/net.tcp.port[,11210])=0'
          name: 'Couchbase buckets on {HOST.NAME} down'
          priority: DISASTER
          manual_close: 'YES'
    ​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Maybe the problem is in "6.4.0beta5".. dev version may have interesting issues... There is now rc1 out, which may be better ...

    Comment

    • misteric
      Junior Member
      • Feb 2023
      • 11

      #3

      If you manually replace request_method: POST with request_method: GET The import succeeds. But I don't know if it will work after that​

      Comment

      Working...