network/zabbix_server: Updated for version 4.0.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
510422dcd6
commit
1a36cc9a10
|
@ -6,13 +6,14 @@ installation of zabbix_server on Slackware.
|
||||||
|
|
||||||
zabbix-java has been moved to a separate package - zabbix-java-gateway
|
zabbix-java has been moved to a separate package - zabbix-java-gateway
|
||||||
|
|
||||||
You will need to have a working installation of httpd and MySQL (*) for
|
You will need to have a working installation of httpd and MariaDB (*) for
|
||||||
zabbix_server to run. MySQL server does not have to be on the same box as your
|
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
|
zabbix_server, but they need to be able to communicate and you will need at
|
||||||
least the MySQL client on the box that will run zabbix_server.
|
least the MariaDB client on the box that will run zabbix_server.
|
||||||
|
|
||||||
(*) zabbix can work with MySQL, Oracle, PostgreSQL and SQLite databases,
|
(*) zabbix can work with MySQL and its forks, Oracle, PostgreSQL and IBM DB2
|
||||||
but these instructions are for MySQL, as it is included with Slackware.
|
databases, but these instructions are for MariaDB, as it is included with
|
||||||
|
Slackware.
|
||||||
|
|
||||||
0) Before running the SlackBuild script
|
0) Before running the SlackBuild script
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
@ -38,7 +39,7 @@ running:
|
||||||
|
|
||||||
1.1) Create initial database
|
1.1) Create initial database
|
||||||
|
|
||||||
On your MySQL server, connect with full privileges:
|
On your MariaDB server, connect with full privileges:
|
||||||
|
|
||||||
# mysql -u <your_user> -p<your_password>
|
# mysql -u <your_user> -p<your_password>
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@ Create the zabbix database & user:
|
||||||
mysql> flush privileges;
|
mysql> flush privileges;
|
||||||
mysql> quit
|
mysql> quit
|
||||||
|
|
||||||
(note: if your MySQL server and zabbix server are the same, use "localhost"
|
(note: if your MariaDB server and zabbix server are the same, use "localhost"
|
||||||
for <your_zabbix_server>)
|
for <your_zabbix_server>)
|
||||||
|
|
||||||
On your zabbix server, connect to the new database:
|
On your zabbix server, connect to the new database:
|
||||||
|
@ -58,7 +59,7 @@ On your zabbix server, connect to the new database:
|
||||||
# cd /usr/share/zabbix_server/database/mysql
|
# cd /usr/share/zabbix_server/database/mysql
|
||||||
# mysql -h <your_mysql_server> -u zabbix -p<your_password> zabbix
|
# mysql -h <your_mysql_server> -u zabbix -p<your_password> zabbix
|
||||||
|
|
||||||
In MySQL, create the schema & add initial data:
|
In MariaDB, create the schema & add initial data:
|
||||||
|
|
||||||
mysql> source schema.sql;
|
mysql> source schema.sql;
|
||||||
mysql> source data.sql;
|
mysql> source data.sql;
|
||||||
|
@ -82,7 +83,7 @@ changes to have effect:
|
||||||
|
|
||||||
1.3) Configure httpd
|
1.3) Configure httpd
|
||||||
|
|
||||||
zabbix requires php enabled in /etc/httpd/httpd/conf
|
zabbix requires php enabled in /etc/httpd/httpd.conf
|
||||||
|
|
||||||
uncomment the line:
|
uncomment the line:
|
||||||
Include /etc/httpd/mod_php.conf
|
Include /etc/httpd/mod_php.conf
|
||||||
|
@ -97,7 +98,7 @@ A standard configuration file is installed as /etc/zabbix/zabbix_server.conf
|
||||||
|
|
||||||
You will need to change at least the following lines:
|
You will need to change at least the following lines:
|
||||||
|
|
||||||
DBHost=<your_mysql_server> (Change if MySQL is not on localhost)
|
DBHost=<your_mariadb_server> (Change if MariaDB is not on localhost)
|
||||||
DBUser=zabbix ("root" doesn't sound like a good idea)
|
DBUser=zabbix ("root" doesn't sound like a good idea)
|
||||||
DBPassword=<your_password> (Change as defined above)
|
DBPassword=<your_password> (Change as defined above)
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=zabbix_server
|
PRGNAM=zabbix_server
|
||||||
VERSION=${VERSION:-3.4.14}
|
VERSION=${VERSION:-4.0.1}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -129,7 +129,6 @@ chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$PRGSHORT
|
||||||
# Database scripts
|
# Database scripts
|
||||||
mkdir -p $PKG/usr/share/$PRGNAM/database/mysql
|
mkdir -p $PKG/usr/share/$PRGNAM/database/mysql
|
||||||
cp -a database/mysql $PKG/usr/share/$PRGNAM/database/
|
cp -a database/mysql $PKG/usr/share/$PRGNAM/database/
|
||||||
cp -a upgrades/dbpatches $PKG/usr/share/$PRGNAM/upgrades/
|
|
||||||
|
|
||||||
# Initial log file
|
# Initial log file
|
||||||
mkdir -p $PKG/var/log/$PRGSHORT
|
mkdir -p $PKG/var/log/$PRGSHORT
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="zabbix_server"
|
PRGNAM="zabbix_server"
|
||||||
VERSION="3.4.14"
|
VERSION="4.0.1"
|
||||||
HOMEPAGE="https://www.zabbix.com"
|
HOMEPAGE="https://www.zabbix.com"
|
||||||
DOWNLOAD="https://downloads.sourceforge.net/zabbix/zabbix-3.4.14.tar.gz"
|
DOWNLOAD="https://downloads.sourceforge.net/zabbix/zabbix-4.0.1.tar.gz"
|
||||||
MD5SUM="16cdacf7198538c0456523d75bb149c7"
|
MD5SUM="360a3325389bba50e051080a7ae27eb7"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="iksemel"
|
REQUIRES="iksemel"
|
||||||
|
|
Loading…
Reference in New Issue