From 18ce68a7cc7b236c72a9e5c64b99fcf20b926dc1 Mon Sep 17 00:00:00 2001 From: Krystian Kozak Date: Mon, 29 Oct 2018 21:13:08 +0100 Subject: [PATCH] zabbix: add server frontend Added zabbix-server-frontend package, which allow to use website interface. To make frontend working, it is required to add some options to uhttpd config witch allow php working. uci add_list uhttpd.main.index_page='index.html, default.html, index.php' uci add_list uhttpd.main.interpreter='.php=/usr/bin/php-cgi' uci set uhttpd.main.index_file='index.html, default.html, index.php' uci commit Compile tested: Yes, brcm2708 Run tested: Yes, brcm2708 Signed-off-by: Krystian Kozak --- admin/zabbix/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/admin/zabbix/Makefile b/admin/zabbix/Makefile index 7345003e55..24b2697157 100644 --- a/admin/zabbix/Makefile +++ b/admin/zabbix/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=zabbix PKG_VERSION:=3.4.14 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_HASH:=7443873cc970672d3c884230d3aeb082f2d8afcc2b757506c2d684ffdd12d77e @@ -117,6 +117,14 @@ define Package/zabbix-server DEPENDS += +ZABBIX_POSTGRESQL:libpq +ZABBIX_MYSQL:libmariadbclient +libevent2 endef +define Package/zabbix-server-frontend + $(call Package/zabbix/Default) + TITLE+= server-frontend + DEPENDS += +php7 +php7-cgi +ZABBIX_POSTGRESQL:php7-mod-pgsql +ZABBIX_MYSQL:php7-mod-mysqli \ + +php7-mod-gd +php7-mod-bcmath +php7-mod-ctype +php7-mod-xmlreader +php7-mod-xmlwriter \ + +php7-mod-session +php7-mod-sockets +php7-mod-mbstring +php7-mod-gettext +endef + define Package/zabbix-proxy $(call Package/zabbix/Default) TITLE+= proxy @@ -285,6 +293,11 @@ define Package/zabbix-server/install $(call Package/zabbix/install/etc,$(1),server) endef +define Package/zabbix-server-frontend/install + $(INSTALL_DIR) $(1)/www/zabbix + $(CP) $(PKG_BUILD_DIR)/frontends/php/* $(1)/www/zabbix +endef + define Package/zabbix-proxy/install $(call Package/zabbix/install/sbin,$(1),proxy) $(call Package/zabbix/install/etc,$(1),proxy) @@ -296,5 +309,6 @@ $(eval $(call BuildPackage,zabbix-extra-network)) $(eval $(call BuildPackage,zabbix-extra-wifi)) $(eval $(call BuildPackage,zabbix-sender)) $(eval $(call BuildPackage,zabbix-server)) +$(eval $(call BuildPackage,zabbix-server-frontend)) $(eval $(call BuildPackage,zabbix-proxy)) $(eval $(call BuildPackage,zabbix-get)) -- 2.30.2