This commit is contained in:
parent
17d4517198
commit
ae075ea741
@ -118,7 +118,7 @@ steps:
|
|||||||
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
|
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- 0.1.1
|
- 0.1.2
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "Zabbix Agent 2",
|
"name": "Zabbix Agent 2",
|
||||||
"url": "https://git.asperti.com/paspo/hassio-addons",
|
"url": "https://git.asperti.com/paspo/hassio-addons",
|
||||||
"image": "docker.asperti.com/paspo/hassio-zabbix-agent2",
|
"image": "docker.asperti.com/paspo/hassio-zabbix-agent2",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"slug": "zabbix-agent2",
|
"slug": "zabbix-agent2",
|
||||||
"description": "Zabbix Agent 2 for hass.io",
|
"description": "Zabbix Agent 2 for hass.io",
|
||||||
"startup": "services",
|
"startup": "services",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
CONFIG_PATH=/data/options.json
|
CONFIG_PATH=/data/options.json
|
||||||
CUSTOM_CFG_PATH=/share/zabbix-agent
|
CUSTOM_CFG_PATH=/share/zabbix-agent2
|
||||||
|
|
||||||
SERVER=$(jq --raw-output ".server" $CONFIG_PATH)
|
SERVER=$(jq --raw-output ".server" $CONFIG_PATH)
|
||||||
HOSTNAME=$(jq --raw-output ".hostname" $CONFIG_PATH)
|
HOSTNAME=$(jq --raw-output ".hostname" $CONFIG_PATH)
|
||||||
@ -17,6 +17,6 @@ ServerActive=$SERVER
|
|||||||
Hostname=$HOSTNAME
|
Hostname=$HOSTNAME
|
||||||
LogType=console
|
LogType=console
|
||||||
Include=${CUSTOM_CFG_PATH}/*.conf
|
Include=${CUSTOM_CFG_PATH}/*.conf
|
||||||
" > /etc/zabbix/zabbix_agentd.conf
|
" > /etc/zabbix/zabbix_agent2.conf
|
||||||
|
|
||||||
sudo -u zabbix zabbix_agentd -f
|
sudo -u zabbix zabbix_agent2 -f
|
||||||
|
Loading…
Reference in New Issue
Block a user