zabbix_export:
  version: '5.4'
  date: '2021-11-21T21:50:03Z'
  groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: d387d955a42246f988615062785d2f2c
      template: 'SAP Availability Linux'
      name: 'SAP Availability Linux'
      description: |
        ## Overview
        
        ================ SAP-Process ================  
          
        O presente documento tem por objetivo apresentar todas as etapas técnicas   
        para implantação do monitoramento dos Processos SAP utilizando shell script   
        e saphostctrl, e a função do Userparameter do agente Zabbix.  
          
        Projeto idealizado por Wilson Fernandes.  
          
        A ideia do projeto foi monitorar os processos SAP abaixo:  
          
        - Compile Server  
        - Daemon  
        - Xsengine  
        - Nameserver  
        - Preprocessor  
        - Webdispatcher
        
        
        
        ## Author
        
        wilsonwers
        
        
      groups:
        -
          name: Templates
      discovery_rules:
        -
          uuid: 01efb9350bf74c0a82795cea01541bcb
          name: sap.discovery
          key: 'sap.availability[database]'
          delay: 60s
          item_prototypes:
            -
              uuid: abddbde3d252495885c2b30dcabdd5ee
              name: '[$2 - $3] [ HDB CompileServer ]'
              key: 'sap.availability[hdbcompileserver,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: e5a65459952c43539bdaec4a2b3a03aa
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbcompileserver,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process CompileServer is not running'
                  priority: DISASTER
            -
              uuid: 867ad47705054741b3ebed8c90b535e5
              name: '[$2 - $3] [ HDB Daemon ]'
              key: 'sap.availability[hdbdaemon,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: 515dc205f7e641e4aa9bb9e3724d8ae3
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbdaemon,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process Daemon is not running'
                  priority: DISASTER
            -
              uuid: a0809e3356ec40ceadc66b570cfebd31
              name: '[$2 - $3] [ HDB IndexServer ]'
              key: 'sap.availability[hdbindexserver,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: 06e08c3657ce4dcaa4626e8a7a01916a
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbindexserver,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process IndexServer is not running'
                  priority: DISASTER
            -
              uuid: e85f9be02ad1457d94db82a1ea9adeae
              name: '[$2 - $3] [ HDB NameServer ]'
              key: 'sap.availability[hdbnameserver,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: 7d912ae02c14432eb5f4702841a2f5c0
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbnameserver,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process NameServer is not running'
                  priority: DISASTER
            -
              uuid: a2b971d1fe004c27863938f4870f4fe2
              name: '[$2 - $3] [ HDB PreProcessor ]'
              key: 'sap.availability[hdbpreprocessor,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: 65f31115f7d7491f8ebe54c301d97869
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbpreprocessor,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process  PreProcessor is not running'
                  priority: DISASTER
            -
              uuid: ea568915d377430e9ce8ff5a96221f8f
              name: '[$2 - $3] [ HDB Webdispatcher ]'
              key: 'sap.availability[hdbwebdispatcher,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: 5be8f207a30942119dad3850018f70d9
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbwebdispatcher,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process  Webdispatcher is not running'
                  priority: DISASTER
            -
              uuid: a96617a244cc4269a974bc9d9971809a
              name: '[$2 - $3] [ HDB Engine ]'
              key: 'sap.availability[hdbxsengine,{#COD_ID},{#NAME_ID}]'
              delay: 60s
              history: 60d
              trends: 90d
              valuemap:
                name: 'SAP Status'
              tags:
                -
                  tag: Application
                  value: 'SAP Availability'
              trigger_prototypes:
                -
                  uuid: ce53b1831dd54d4ebc0f37ffe47b187e
                  expression: 'last(/SAP Availability Linux/sap.availability[hdbxsengine,{#COD_ID},{#NAME_ID}])=0'
                  name: '{HOSTNAME} - Process Engine is not running'
                  priority: DISASTER
          graph_prototypes:
            -
              uuid: aeae2bef219340d993004a3f3d4d4e8c
              name: 'SAP Process'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbcompileserver,{#COD_ID},{#NAME_ID}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbdaemon,{#COD_ID},{#NAME_ID}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbxsengine,{#COD_ID},{#NAME_ID}]'
                -
                  sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: '000099'
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbindexserver,{#COD_ID},{#NAME_ID}]'
                -
                  sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FF6666
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbnameserver,{#COD_ID},{#NAME_ID}]'
                -
                  sortorder: '5'
                  drawtype: GRADIENT_LINE
                  color: 6C59DC
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbpreprocessor,{#COD_ID},{#NAME_ID}]'
                -
                  sortorder: '6'
                  drawtype: GRADIENT_LINE
                  color: EEEE00
                  item:
                    host: 'SAP Availability Linux'
                    key: 'sap.availability[hdbwebdispatcher,{#COD_ID},{#NAME_ID}]'
      valuemaps:
        -
          uuid: a50ed23cd02343e5908f061b2bce6b72
          name: 'SAP Status'
          mappings:
            -
              value: '0'
              newvalue: Running
            -
              value: '1'
              newvalue: Fail
