From 28c3194cc34d0dc13efc6da4f210e4256e1bce87 Mon Sep 17 00:00:00 2001 From: zux Date: Sat, 16 Apr 2022 00:38:25 +0100 Subject: network/zabbix_server: Updated for version 6.0.3. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- network/zabbix_server/README.SLACKWARE | 41 ++++---------------------- network/zabbix_server/zabbix_server.SlackBuild | 25 +++++++++------- network/zabbix_server/zabbix_server.info | 8 ++--- 3 files changed, 25 insertions(+), 49 deletions(-) diff --git a/network/zabbix_server/README.SLACKWARE b/network/zabbix_server/README.SLACKWARE index 71d5cee738..e492969949 100644 --- a/network/zabbix_server/README.SLACKWARE +++ b/network/zabbix_server/README.SLACKWARE @@ -6,12 +6,15 @@ installation of zabbix_server on Slackware. zabbix-java has been moved to a separate package - zabbix-java-gateway +Frontend is now also in a seperate package - zabbix_frontend as it might be installed on a seperate machine + + You will need to have a working installation of httpd and MariaDB (*) for zabbix_server to run. MariaDB server does not have to be on the same box as zabbix_server, but they need to be able to communicate and you will need at least the MariaDB client on the box that will run zabbix_server. -(*) zabbix can work with MySQL and its forks, Oracle, PostgreSQL and IBM DB2 +(*) zabbix can work with MySQL and its forks, Oracle and PostgreSQL databases, but these instructions are for MariaDB, as it is included with Slackware. @@ -45,7 +48,7 @@ On your MariaDB server, connect with full privileges: Create the zabbix database & user: - mysql> create database zabbix character set utf8 collate utf8_bin; + mysql> create database zabbix set utf8mb4 collate utf8mb4_bin; mysql> use mysql; mysql> grant all privileges on zabbix.* to zabbix@ identified by ''; mysql> flush privileges; @@ -66,33 +69,8 @@ In MariaDB, create the schema & add initial data: mysql> source images.sql; mysql> quit -1.2) Configure PHP - -zabbix requires some parameters in /etc/php.ini to be altered: - - - post_max_size = 16M Default = 8M - - max_execution_time = 300 Default = 30 - - max_input_time = 300 Default = 60 - - date.timezone Needs to be set (default = blank) - - always_populate_raw_post_data = -1 - -After changing the php.ini file, you'll need to restart httpd for the -changes to have effect: - - # /etc/rc.d/rc.httpd restart - -1.3) Configure httpd -zabbix requires php enabled in /etc/httpd/httpd.conf - -uncomment the line: - Include /etc/httpd/mod_php.conf - -add index.php to the DirectoryIndex parameter - Directory index.html index.php - - -1.4) zabbix_server configuration file +1.2) zabbix_server configuration file A standard configuration file is installed as /etc/zabbix/zabbix_server.conf @@ -139,10 +117,3 @@ Now you are ready to start zabbix_server by calling the startup script: # /etc/rc.d/rc.zabbix_server start -Once zabbix_server has started and configured correctly, you should be able -to access it by pointing your browser at: - - http://(ip-of-your-zabbix-server)/zabbix/ - -From here on, you can follow the manual to start the initial configuration -and set up all the items to monitor. diff --git a/network/zabbix_server/zabbix_server.SlackBuild b/network/zabbix_server/zabbix_server.SlackBuild index 16636462a9..33b2fb756a 100644 --- a/network/zabbix_server/zabbix_server.SlackBuild +++ b/network/zabbix_server/zabbix_server.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zabbix_server -VERSION=${VERSION:-4.4.7} +VERSION=${VERSION:-6.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +40,9 @@ fi PRGSHORT=zabbix -DOCROOT=${DOCROOT:-/var/www/htdocs} -PHPUSER=${PHPUSER:-root} -PHPGROUP=${PHPGROUP:-apache} +#DOCROOT=${DOCROOT:-/var/www/htdocs} +#PHPUSER=${PHPUSER:-root} +#PHPGROUP=${PHPGROUP:-apache} ZABBIXUSER=${ZABBIXUSER:-zabbix} ZABBIXGROUP=${ZABBIXGROUP:-zabbix} @@ -103,6 +103,7 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig \ ./configure \ --prefix=/usr \ --sysconfdir=/etc/zabbix \ @@ -115,10 +116,14 @@ CXXFLAGS="$SLKCFLAGS" \ --with-mysql \ --with-libcurl \ --with-net-snmp \ - --with-ssh2 \ + --with-ssh \ --with-ldap \ - --with-ipv6 \ - --with-libxml2 \ + --enable-ipv6 \ + --with-libxml2=/usr/include/libxml2 \ + --with-openssl \ + --enable-ipv6 \ + --with-unixodbc \ + --with-libpcre2 \ --build=$ARCH-slackware-linux make @@ -131,9 +136,9 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done # Install "frontend" to $DOCROOT/zabbix -mkdir -p $PKG/$DOCROOT/$PRGSHORT -cp -a frontends/php/* $PKG/$DOCROOT/$PRGSHORT/ -chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$PRGSHORT +#mkdir -p $PKG/$DOCROOT/$PRGSHORT +#cp -a frontends/php/* $PKG/$DOCROOT/$PRGSHORT/ +#chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$PRGSHORT # Database scripts mkdir -p $PKG/usr/share/$PRGNAM/database/mysql diff --git a/network/zabbix_server/zabbix_server.info b/network/zabbix_server/zabbix_server.info index 29456fc927..22e346f53d 100644 --- a/network/zabbix_server/zabbix_server.info +++ b/network/zabbix_server/zabbix_server.info @@ -1,10 +1,10 @@ PRGNAM="zabbix_server" -VERSION="4.4.7" +VERSION="6.0.3" HOMEPAGE="https://www.zabbix.com" -DOWNLOAD="https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.4.7/zabbix-4.4.7.tar.gz" -MD5SUM="24e5a166694db45ebb461757074fb02d" +DOWNLOAD="https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.3.tar.gz" +MD5SUM="9b2bf6fd0996fe5593d8be63f8a548a1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="unixODBC" MAINTAINER="zux" EMAIL="zux@pie-dabas.net" -- cgit v1.2.3