Compare commits
4 Commits
0.2.1
...
3b8cab00ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
3b8cab00ad
|
|||
|
c975d7d2b6
|
|||
|
46c224cd9f
|
|||
|
c2eef2b279
|
@@ -6,3 +6,8 @@ ENV LANG C.UTF-8
|
||||
COPY rootfs /
|
||||
|
||||
RUN apk add -U zabbix-agent2=6.0.5-r0 sudo
|
||||
|
||||
LABEL \
|
||||
io.hass.version="0.2.3" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.arch="amd64"
|
||||
@@ -6,3 +6,8 @@ ENV LANG C.UTF-8
|
||||
COPY rootfs /
|
||||
|
||||
RUN apk add -U zabbix-agent2=6.0.5-r0 sudo
|
||||
|
||||
LABEL \
|
||||
io.hass.version="0.2.3" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.arch="armhf"
|
||||
@@ -6,3 +6,8 @@ ENV LANG C.UTF-8
|
||||
COPY rootfs /
|
||||
|
||||
RUN apk add -U zabbix-agent2=6.0.5-r0 sudo
|
||||
|
||||
LABEL \
|
||||
io.hass.version="0.2.3" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.arch="aarch64"
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
This addon enables a zabbix agent2 for the hassio instance.
|
||||
|
||||
You obviously neead a zabbix server for it to be meaningful.
|
||||
You obviously need a zabbix server for it to be meaningful.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "Zabbix Agent 2",
|
||||
"url": "https://git.asperti.com/paspo/hassio-addons",
|
||||
"image": "docker.asperti.com/paspo/hassio-zabbix-agent2",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.3",
|
||||
"slug": "zabbix-agent2",
|
||||
"description": "Zabbix Agent 2 for hass.io",
|
||||
"startup": "services",
|
||||
@@ -10,6 +10,7 @@
|
||||
"hassio_api": true,
|
||||
"audio": false,
|
||||
"gpio": false,
|
||||
"init": false,
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64"
|
||||
|
||||
@@ -5,10 +5,13 @@
|
||||
|
||||
set -e
|
||||
|
||||
CONFIG_PATH=/data/options.json
|
||||
CUSTOM_CFG_PATH=/share/zabbix-agent2
|
||||
|
||||
SERVER="$(bashio::config 'server')"
|
||||
HOSTNAME="$(bashio::config 'hostname')"
|
||||
SERVER_OLD=$(jq --raw-output ".server" $CONFIG_PATH)
|
||||
SERVER="$(bashio::config 'server' $SERVER_OLD)"
|
||||
HOSTNAME_OLD=$(jq --raw-output ".hostname" $CONFIG_PATH)
|
||||
HOSTNAME="$(bashio::config 'hostname' $HOSTNAME_OLD)"
|
||||
|
||||
if [ ! -d "$CUSTOM_CFG_PATH" ] ; then
|
||||
bashio::log.info "Creating a folder for custom configuration"
|
||||
|
||||
Reference in New Issue
Block a user