forked from zabbix/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Home Assistant Template for Zabbix 6.2
- Loading branch information
1 parent
182ca84
commit aa446ab
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
48 changes: 48 additions & 0 deletions
48
Applications/Others/template_homeassistant/6.2/zbx_export_templates.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |