zabbix_export:
  version: '6.2'
  date: '2022-09-15T10:48:29Z'
  template_groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: a8be5b4f74a84f5cb7aae42144bfd730
      template: 'Home Assistant Service'
      name: 'Home Assistant Service'
      description: |
        Hello friends,
        
        I created this zabbix template to monitor home assistant application api.
        
        ## Author
        
        gtjadsonsantos
      groups:
        -
          name: Templates
      items:
        -
          uuid: 70e9092bd1304ef4876a4218c48e4df3
          name: 'API Home Assistant'
          type: HTTP_AGENT
          key: api.homeassistant.service
          trends: '0'
          value_type: TEXT
          url: '{$HOMEASSISTANT_URL}/api/'
          posts: '{"message":"API running."}'
          status_codes: 200-502
          headers:
            -
              name: Authorization
              value: '{$HOMEASSISTANT_TOKEN}'
          tags:
            -
              tag: Application
              value: 'Home Assistant Service'
          triggers:
            -
              uuid: c0bc008cf06c40989c1e0e1a8f447e56
              expression: 'last(/Home Assistant Service/api.homeassistant.service,#1)="Gateway Timeout" or last(/Home Assistant Service/api.homeassistant.service,#1)="Bad Gateway" or last(/Home Assistant Service/api.homeassistant.service,#1)="Unauthorized"'
              name: 'Home Assistant Unavailable'
              priority: HIGH
