Skip to content

Commit

Permalink
Home Assistant Template for Zabbix 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gtjadsonsantos committed Sep 15, 2022
1 parent 182ca84 commit aa446ab
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Applications/Others/template_homeassistant/6.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Home Assistant

## Description

Template to monitor home assistant application api

## Overview

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

## Macros used

| Macro | Example | Description |
|--------------------------|-------------------------------|------------------|
| `{$HOMEASSISTANT_URL}` | http://192.168.0.50:8123 | URL Application |
| `{$HOMEASSISTANT_TOKEN}` | Bearer XxXxXxX.xXxXxXXx.XxXxX | Long Lived Token |
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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)="\"\"" 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

0 comments on commit aa446ab

Please sign in to comment.