zabbix_export:
  version: '6.0'
  date: '2021-11-21T21:40:15Z'
  groups:
    -
      uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
      name: Templates/Applications
  templates:
    -
      uuid: 7f3d1067425d41c5870aa7f69f88f60c
      template: '1C Enterprise'
      name: '1C Enterprise'
      description: |
        ## Overview
        
         **Zabbix 1C Enterprise**
        
        
        Monitor sessions number for each base in cluster and for each cluster. Items names include base name and cluster name.
        
        
        Using LLD for base discovery
        
        
        Suggestions are welcome.
        
        
        UPD Added items for monitoring
        
        
        UPD2 Added converted to exe Python scripts, so you don't need install Python interpreter, but you need be very fearless to use exe files from Internet :)  
        
        
        
        
        
      groups:
        -
          name: Templates/Applications
      discovery_rules:
        -
          uuid: 0f23b6dd36cc4c26b8d05771dd0684f0
          name: Infobases
          key: 1cEnt.infobases
          delay: 2m
          lifetime: 5d
          item_prototypes:
            -
              uuid: 340987436b9741bc814536309d30bf63
              name: 'Background jobs in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.bjobs[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.BackgroundJob
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: a40acabe2b354e74babb29b54b8ea59e
              name: 'Blocked objects by DBMS in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.blocked-by-dbms[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              status: DISABLED
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.blockedByDBMS
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: b330e261bb5c4be7ac73b077762c85a7
              name: 'Data in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.bytes-all[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              status: DISABLED
              units: B
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.bytesAll
                -
                  type: SIMPLE_CHANGE
                  parameters:
                    - ''
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: df9ae071be7242939996a45149882e8e
              name: 'COM connections in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.comconn[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.COMConnection
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: c765277fcc984de68273cbeff7f6b03d
              name: 'Block duration in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.db-proc-took[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              units: ms
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.dbProcTook
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: 1888241f440f40c1aa748a6a6e9af92a
              name: 'Designer clients in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.designers[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.Designer
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: a574dba603a7457c8c2751b1c80e9274
              name: 'Thick clients in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.thickClient[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.1CV8
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: 3a5d72fe9d0046b9bb74f55c6440ceb9
              name: 'Thin clients in {#NAME}, cluster {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.thinClient[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.1CV8C
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: cf129cb437384e2a81291f2f4a7d0092
              name: 'Total sessions in {#NAME}, cluster {#CLUSTER_NAME}'
              type: CALCULATED
              key: '1cEnt.sessions.totalSessions[{#INFOBASE}, {#CLUSTER}]'
              delay: 5m
              history: 30d
              params: 'last(//1cEnt.sessions.designers[{#INFOBASE}, {#CLUSTER}]) + last(//1cEnt.sessions.bjobs[{#INFOBASE}, {#CLUSTER}]) + last(//1cEnt.sessions.comconn[{#INFOBASE}, {#CLUSTER}]) + last(//1cEnt.sessions.thickClient[{#INFOBASE}, {#CLUSTER}]) + last(//1cEnt.sessions.thinClient[{#INFOBASE}, {#CLUSTER}]) + last(//1cEnt.sessions.webclients[{#INFOBASE}, {#CLUSTER}])'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: c1171b1c870f4c29b14a10bf6777348b
              name: 'Web clients in {#NAME}, {#CLUSTER_NAME}'
              type: DEPENDENT
              key: '1cEnt.sessions.webclients[{#INFOBASE}, {#CLUSTER}]'
              delay: '0'
              history: 30d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - $.WebClient
              master_item:
                key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
            -
              uuid: ec9b89a43861432c9bb844cff87c2ea2
              name: 'Infobase sessions {#NAME}, cluster {#CLUSTER_NAME}'
              key: '1cEnt.sessions[{#INFOBASE},{#CLUSTER}]'
              delay: 5m
              trends: '0'
              value_type: CHAR
              request_method: POST
              tags:
                -
                  tag: Application
                  value: '1C Enterprise'
          graph_prototypes:
            -
              uuid: d05f43fdc3fe415aa6c8ee36838a1083
              name: 'Infobase data {#NAME}, cluster {#CLUSTER_NAME}'
              graph_items:
                -
                  color: FF0000
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.db-proc-took[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '1'
                  color: FF8000
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.blocked-by-dbms[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 0040FF
                  yaxisside: RIGHT
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.bytes-all[{#INFOBASE}, {#CLUSTER}]'
            -
              uuid: 6235ce866acd4b779d8849638819d482
              name: 'Infobase sessions {#NAME}, cluster {#CLUSTER_NAME}'
              type: STACKED
              graph_items:
                -
                  color: FF0000
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.designers[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '1'
                  color: 0040FF
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.thickClient[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '2'
                  color: 00FF00
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.thinClient[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '3'
                  color: FF8000
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.comconn[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '4'
                  color: FFFF00
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.bjobs[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '5'
                  color: BA2A5D
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.webclients[{#INFOBASE}, {#CLUSTER}]'
                -
                  sortorder: '6'
                  color: 00FFFF
                  yaxisside: RIGHT
                  item:
                    host: '1C Enterprise'
                    key: '1cEnt.sessions.db-proc-took[{#INFOBASE}, {#CLUSTER}]'
          request_method: POST
