zabbix_export:
  version: '6.0'
  date: '2021-11-21T21:42:05Z'
  groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: 48d19098672f4e7aa7dab1942260d87d
      template: Fail2ban
      name: Fail2ban
      description: |
        ## Overview
        
        Fail2Ban template for Zabbix
        ============================
        
        
        **Features:**
        
        
        Automatic discovery of jails
        
        
        Monitor service status
        
        
        Monitor jails
        
        
        Jails graph
        
        
         
        
        
        **The installation instruction is in this repository.** [github.com/hermanekt/zabbix-fail2ban-discovery-](cat-app/firewall/fail2ban/visit)
        
        
        
        ## Author
        
        Tomas Hermanek
        
        
      groups:
        -
          name: Templates
      items:
        -
          uuid: de416c540fd0435db1822e38c036f0d7
          name: 'Fail2Ban service is running'
          key: 'proc.num[f2b/server]'
          delay: '60'
          description: 'ping - tests if the server is alive'
          valuemap:
            name: 'Service state'
          tags:
            -
              tag: Application
              value: Fail2ban
          triggers:
            -
              uuid: ffa07343b51d4bf58c2b8c324c6a7a62
              expression: 'last(/Fail2ban/proc.num[f2b/server])=0'
              name: 'Fail2ban server is Down'
              priority: AVERAGE
      discovery_rules:
        -
          uuid: ccbd8ba7a96d47b8953af017e3b0f803
          name: 'Fail2ban discovery'
          key: fail2ban.discovery
          delay: '30'
          description: 'Discovery of jails from fail2ban daemon.'
          item_prototypes:
            -
              uuid: 8cc0b05211fc4278b2feb46727a4ca97
              name: 'Fail2ban {#JAIL} banned IPs'
              key: 'fail2ban.status[{#JAIL}]'
              delay: '60'
              units: count
              tags:
                -
                  tag: Application
                  value: Fail2ban
          graph_prototypes:
            -
              uuid: b151e34af81548b1b92cf0a6b36cdee7
              name: 'Count of banned IPs on jail {#JAIL}'
              graph_items:
                -
                  color: 00C800
                  item:
                    host: Fail2ban
                    key: 'fail2ban.status[{#JAIL}]'
      valuemaps:
        -
          uuid: 249132609d114d21bf84a38a3c559bfd
          name: 'Service state'
          mappings:
            -
              value: '0'
              newvalue: Down
            -
              value: '1'
              newvalue: Up
