Skip to content

Commit

Permalink
Zabbix Agent/Zabbix Agent 2 - Fix UserParameter and host network metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
lumarel authored and pschmitt committed Jan 12, 2025
1 parent e26b1ee commit fc23af5
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
7 changes: 7 additions & 0 deletions zabbix-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.6.1] - 2025-01-12

## Fixed

- Fix UserParameter value check
- To detect host interface metrics container needs to run in host network

# [1.6.0] - 2025-01-11

## Changed
Expand Down
3 changes: 2 additions & 1 deletion zabbix-agent/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Zabbix Agent",
"version": "1.6.0",
"version": "1.6.1",
"slug": "zabbix-agent",
"description": "Zabbix Network Monitoring Agent",
"url": "https://github.com/pschmitt/home-assistant-addons/tree/main/zabbix-agent",
Expand All @@ -13,6 +13,7 @@
],
"startup": "system",
"boot": "auto",
"host_network": true,
"host_ipc": true,
"ports": {
"10050/tcp": 10050
Expand Down
2 changes: 1 addition & 1 deletion zabbix-agent/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
unset ZABBIX_TLSPSK_IDENTITY
unset ZABBIX_TLSPSK_SECRET

if [ ${ZABBIX_USERPARAMETER} != "null" ]; then
if [ "${ZABBIX_USER_PARAMETER}" != "null" ]; then
sed -i 's@^#\?\s\?\(UserParameter\)=.*@\1='"${ZABBIX_USER_PARAMETER}"'@' "${ZABBIX_CONFIG_FILE}"
fi

Expand Down
7 changes: 7 additions & 0 deletions zabbix-agent2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.7.1] - 2025-01-12

## Fixed

- Fix UserParameter value check
- To detect host interface metrics container needs to run in host network

# [1.7.0] - 2025-01-11

## Fixed
Expand Down
3 changes: 2 additions & 1 deletion zabbix-agent2/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Zabbix Agent 2",
"version": "1.7.0",
"version": "1.7.1",
"slug": "zabbix-agent2",
"description": "Zabbix Network Monitoring Agent 2",
"url": "https://github.com/pschmitt/home-assistant-addons/tree/main/zabbix-agent2",
Expand All @@ -10,6 +10,7 @@
],
"startup": "system",
"boot": "auto",
"host_network": true,
"host_ipc": true,
"docker_api": true,
"ports": {
Expand Down
2 changes: 1 addition & 1 deletion zabbix-agent2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
unset ZABBIX_TLSPSK_IDENTITY
unset ZABBIX_TLSPSK_SECRET

if [ ${ZABBIX_USERPARAMETER} != "null" ]; then
if [ "${ZABBIX_USER_PARAMETER}" != "null" ]; then
sed -i 's@^#\?\s\?\(UserParameter\)=.*@\1='"${ZABBIX_USER_PARAMETER}"'@' "${ZABBIX_CONFIG_FILE}"
fi

Expand Down

0 comments on commit fc23af5

Please sign in to comment.