Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions admin/zabbix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=zabbix
PKG_VERSION:=7.0.28
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://cdn.zabbix.com/zabbix/sources/stable/$(basename $(PKG_VERSION))/ \
Expand Down Expand Up @@ -360,6 +360,7 @@ define Package/zabbix-frontend-server
+php8-mod-mbstring \
+php8-mod-openssl \
+php8-mod-session \
+php8-mod-simplexml \
+php8-mod-sockets \
+php8-mod-xmlreader \
+php8-mod-xmlwriter
Expand Down Expand Up @@ -446,7 +447,7 @@ ifdef CONFIG_PACKAGE_zabbix-extra-mac80211
define Build/Prepare
$(call Build/Prepare/Default)
mkdir -p $(PKG_BUILD_DIR)/zabbix-extra-mac80211
$(CP) ./files/zabbix_helper_mac80211.c $(PKG_BUILD_DIR)/zabbix-extra-mac80211/
$(CP) ./src-extra/zabbix_helper_mac80211.c $(PKG_BUILD_DIR)/zabbix-extra-mac80211/
endef

define Build/Configure
Expand Down Expand Up @@ -486,34 +487,39 @@ define Package/zabbix/install/init.d
endef

define Package/zabbix/install/zabbix.conf.d
$(INSTALL_DIR) $(1)/etc/zabbix_agentd.conf.d
$(INSTALL_BIN) ./files/$(2) $(1)/etc/zabbix_agentd.conf.d/$(2)
$(INSTALL_DIR) $(1)/usr/share/zabbix_agentd.openwrt-params.d
$(INSTALL_DATA) ./files/usr/share/zabbix_agentd.openwrt-params.d/$(2) $(1)/usr/share/zabbix_agentd.openwrt-params.d/$(2)
endef

define Package/zabbix-agentd/conffiles
/etc/zabbix_agentd.conf
/etc/zabbix_agentd.conf.d/
endef

define Package/zabbix-agentd/install
$(INSTALL_DIR) $(1)/etc/zabbix_agentd.conf.d
$(INSTALL_DIR) $(1)/usr/share/zabbix_agentd.openwrt-params.d
$(call Package/zabbix/install/sbin,$(1),agentd)
$(call Package/zabbix/install/etc,$(1),agentd)
$(call Package/zabbix/install/init.d,$(1),agentd)
endef

define Package/zabbix-agentd-basic/conffiles
/etc/zabbix_agentd.conf
/etc/zabbix_agentd.conf.d/
endef

define Package/zabbix-agentd-basic/install
$(INSTALL_DIR) $(1)/etc/zabbix_agentd.conf.d
$(INSTALL_DIR) $(1)/usr/share/zabbix_agentd.openwrt-params.d
$(call Package/zabbix/install/sbin,$(1),agentd)
$(call Package/zabbix/install/etc,$(1),agentd)
$(call Package/zabbix/install/init.d,$(1),agentd)
endef

define Package/zabbix-proxy/conffiles
/etc/zabbix_proxy.conf
/etc/zabbix_proxy.conf.d/
endef

define Package/zabbix-proxy/install
Expand All @@ -524,6 +530,7 @@ endef

define Package/zabbix-proxy-basic-sqlite/conffiles
/etc/zabbix_proxy.conf
/etc/zabbix_proxy.conf.d/
endef

define Package/zabbix-proxy-basic-sqlite/install
Expand All @@ -534,17 +541,15 @@ endef

define Package/zabbix-server/conffiles
/etc/zabbix_server.conf
/etc/zabbix_server.conf.d/
/etc/config/zabbix_server
/etc/sysctl.d/90-zabbix-discovery-workers.conf
endef

define Package/zabbix-server/install
$(INSTALL_DIR) $(1)/etc/zabbix_server.conf.d
$(call Package/zabbix/install/sbin,$(1),server)
$(call Package/zabbix/install/etc,$(1),server)
$(call Package/zabbix/install/init.d,$(1),server)
$(INSTALL_DIR) $(1)/etc/sysctl.d
$(INSTALL_CONF) ./files/zabbix-discovery-workers.conf.sysctl $(1)/etc/sysctl.d/90-zabbix-discovery-workers.conf
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/zabbix_server.config $(1)/etc/config/zabbix_server
$(INSTALL_DIR) $(1)/etc/uci-defaults
Expand Down Expand Up @@ -575,7 +580,7 @@ endef
define Package/zabbix-extra-network/install
$(call Package/zabbix/install/zabbix.conf.d,$(1),network)
$(INSTALL_DIR) $(1)/usr/share/acl.d
$(INSTALL_DATA) ./files/zabbix-network-ubus-acl.json $(1)/usr/share/acl.d/zabbix-network.json
$(INSTALL_DATA) ./files/usr/share/acl.d/zabbix-network-ubus-acl.json $(1)/usr/share/acl.d/zabbix-network.json
endef

define Package/zabbix-extra-network/postinst
Expand All @@ -588,7 +593,7 @@ endef
define Package/zabbix-extra-wifi/install
$(call Package/zabbix/install/zabbix.conf.d,$(1),wifi)
$(INSTALL_DIR) $(1)/usr/share/acl.d
$(INSTALL_DATA) ./files/zabbix-wifi-ubus-acl.json $(1)/usr/share/acl.d/zabbix-wifi.json
$(INSTALL_DATA) ./files/usr/share/acl.d/zabbix-wifi-ubus-acl.json $(1)/usr/share/acl.d/zabbix-wifi.json
endef

define Package/zabbix-extra-wifi/postinst
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion admin/zabbix/files/zabbix-discovery-workers.conf.sysctl

This file was deleted.

3 changes: 2 additions & 1 deletion admin/zabbix/patches/010-change-agentd-config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

####### USER-DEFINED MONITORED PARAMETERS #######

@@ -547,5 +541,5 @@ Hostname=Zabbix server
@@ -547,5 +541,6 @@ Hostname=Zabbix server
# Include=

# Include=/usr/local/etc/zabbix_agentd.userparams.conf
-# Include=/usr/local/etc/zabbix_agentd.conf.d/
# Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
+Include=/usr/share/zabbix_agentd.openwrt-params.d/
Comment thread
danielfdickinson marked this conversation as resolved.
+Include=/etc/zabbix_agentd.conf.d/