zabbix_export:
  version: '6.0'
  date: '2021-11-21T21:47:34Z'
  groups:
    -
      uuid: 887652afc6644a729e182a9a70fedf3e
      name: 'Template Application'
  templates:
    -
      uuid: 9d4f059ceb404e7996add779c19fcac9
      template: 'App Glassfish server.jvm'
      name: 'App Glassfish server.jvm'
      description: |
        ## Overview
        
        #SO LUONG KET NOI TICH LUY
        
        
        UserParameter=glassfish.counttotalconnections-starttime,/home/glassfish/bin/asadmin --passwordfile /home/webserver2/asadminpass get --monitor server.network.http-listener-1.connection-queue.counttotalconnections-starttime | grep server |cut -d ' ' -f3
        
        
        UserParameter=glassfish.counttotalconnections-count,/home/glassfish/bin/asadmin --passwordfile /home/webserver2/asadminpass get --monitor server.network.http-listener-1.connection-queue.counttotalconnections-count | grep server |cut -d ' ' -f3
        
        
        #SO LUONG KET NOI DANG MO
        
        
        UserParameter=glassfish.countopenconnections-count,/home/glassfish/bin/asadmin --passwordfile /home/webserver2/asadminpass get --monitor server.network.http-listener-1.connection-queue.countopenconnections-count | grep server |cut -d ' ' -f3
        
        
        #SO LUONG KET NOI CO DUOC TRONG 5 PHUT
        
        
        UserParameter=glassfish.countqueued5minutesaverage-count,/home/glassfish/bin/asadmin --passwordfile /home/webserver2/asadminpass get --monitor server.network.http-listener-1.connection-queue.countqueued5minutesaverage-count | grep server |cut -d ' ' -f3
        
        
         
        
        
         
        
        
        
        
      groups:
        -
          name: 'Template Application'
      items:
        -
          uuid: 4c08c1aa9c944c6889c65d74a4a2d733
          name: jvm.memory.maxheapsize-count-count
          key: glassfish.maxheapsize-count-count
          delay: '900'
          units: B
          tags:
            -
              tag: Application
              value: Glassfish
          triggers:
            -
              uuid: bf176aea4441423dbd19ec11bd5f81f7
              expression: 'nodata(/App Glassfish server.jvm/glassfish.maxheapsize-count-count,30m)=1'
              name: '{HOST.NAME} Glassfish JVM heap memory khong co du lieu'
              status: DISABLED
        -
          uuid: 68ea0cf997b84e579acd96021875fae1
          name: jvm.memory.maxnonheapsize-count-count
          key: glassfish.maxnonheapsize-count-count
          delay: '300'
          units: B
          tags:
            -
              tag: Application
              value: Glassfish
        -
          uuid: 406a504ad5cf4aea917ba3462681eae5
          name: jvm.thread-system.threadcount-count
          key: glassfish.threadcount-count
          delay: '120'
          tags:
            -
              tag: Application
              value: Glassfish
        -
          uuid: 9492d38092c54ba88d097fd047734fd3
          name: jvm.memory.usedheapsize-count-count
          key: glassfish.usedheapsize-count-count
          delay: '300'
          units: B
          tags:
            -
              tag: Application
              value: Glassfish
        -
          uuid: 3c28e3c5934c416f89f09eae83f22f27
          name: jvm.memory.usednonheapsize-count-count
          key: glassfish.usednonheapsize-count-count
          delay: '300'
          units: B
          tags:
            -
              tag: Application
              value: Glassfish
  triggers:
    -
      uuid: 651fd52973194e2985ea14e0467b5443
      expression: 'last(/App Glassfish server.jvm/glassfish.usedheapsize-count-count)>last(/App Glassfish server.jvm/glassfish.maxheapsize-count-count)'
      name: '{HOST.NAME} Glassfish JVM memory heapsize bi day'
      priority: WARNING
      dependencies:
        -
          name: '{HOST.NAME} Glassfish JVM memory heapsize free <10%'
          expression: 'last(/App Glassfish server.jvm/glassfish.usedheapsize-count-count)>last(/App Glassfish server.jvm/glassfish.maxheapsize-count-count,#2)*0.9'
    -
      uuid: e0ab0da906a54f0db06176ca7665b520
      expression: 'last(/App Glassfish server.jvm/glassfish.usedheapsize-count-count)>last(/App Glassfish server.jvm/glassfish.maxheapsize-count-count,#2)*0.9'
      name: '{HOST.NAME} Glassfish JVM memory heapsize free <10%'
      status: DISABLED
      priority: INFO
    -
      uuid: 729b06de468e4bdaa9d7ab817e73df72
      expression: 'last(/App Glassfish server.jvm/glassfish.usednonheapsize-count-count)>last(/App Glassfish server.jvm/glassfish.maxnonheapsize-count-count)'
      name: '{HOST.NAME} Glassfish JVM non-heapsize memory bi day'
      priority: INFO
    -
      uuid: c06e51ce27924bbea1471be044d1a589
      expression: 'last(/App Glassfish server.jvm/glassfish.usednonheapsize-count-count)>last(/App Glassfish server.jvm/glassfish.maxnonheapsize-count-count)*0.9'
      name: '{HOST.NAME} Glassfish JVM non-heapsize memory trong <10%'
      priority: INFO
  graphs:
    -
      uuid: beac8fcd3ae541bfa5fcacd661f49d51
      name: server.jvm.memory
      graph_items:
        -
          color: '550000'
          item:
            host: 'App Glassfish server.jvm'
            key: glassfish.maxheapsize-count-count
        -
          sortorder: '1'
          color: '000066'
          item:
            host: 'App Glassfish server.jvm'
            key: glassfish.maxnonheapsize-count-count
        -
          sortorder: '2'
          color: FF6666
          item:
            host: 'App Glassfish server.jvm'
            key: glassfish.usedheapsize-count-count
        -
          sortorder: '3'
          color: 6666FF
          item:
            host: 'App Glassfish server.jvm'
            key: glassfish.usednonheapsize-count-count
    -
      uuid: 18932ce1934846619abfb1cb3766c0bf
      name: server.jvm.thread-system
      graph_items:
        -
          color: 00C8C8
          item:
            host: 'App Glassfish server.jvm'
            key: glassfish.threadcount-count
