-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
89 lines (59 loc) · 2.44 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
This directory contains zabbix MySQL loadable module, which extends
functionality of the Zabbix Agent.
Included build framework immplemened full software package maintenance cycle
of source code consisting from:
- building binary files on development stage
- final verification before release and package source tar ball
- building rpm package straight from source tar ball
- automatic embedding installed rpm package into configuration of the main
Zabbix packages
To build it you need to have the following rpm packages installed:
- autoconf
- automake
- gcc
- glibc-devel
- pkgconfig
- rpm-build
- xz
- zabbix-devel
Description of steps necessary to:
- prepare source code tree build automation:
autoreconf -fiv
- compile module:
./configure <params>; make
- install:
make install [DESTDIR=<install_prefix>]
- generate clean tested distribution source tar ball:
make distcheck
- generate rpm packages (binary and source as well) from generated tar ball
rpmbuild -ta zbx_mod_mysql-<version>.tar.xz
- install generated package
rpm -Uvh zbx_mod_mysql-<version>-1.<arch>.rpm
If you want to publish generated package(s) into an rpm repository you need to
install the anaconda package which will provide zbx_mod_mysql package.
You need to create a directory to store the binary package and
afterwards to copy the rpm file into it you must update your repository indexes by:
createrepo <repo_directory>
It is good to create <repo_directory>/old directory and move after
release of the new package old binary packages to <repo_directory>/old
directory to hold in single repo current and older packages.
To upgrade package on systems which have registered in dnf/yum repo you
need to execute:
yum upgrade zbx_mod_mysql
or:
dnf upgrade zbx_mod_mysql
As long as new and previous package will be in the same repository if anything will
be wrong with upgraded package availability as long as older binary package
is indexed by repository all what is really necessary to execute is:
yum downgrade zbx_mod_mysql
or:
dnf downgrade zbx_mod_mysql
RPM package has registered LoadModule=zbx_mod_mysql.so configuration file
which will be installed in <sysconfdir>/zabbix_agentd.d directory. If
zabbix_agentd.conf file has uncommented line like:
Include=<sysconfdir>/zabbix_agentd.d
this configuration file will be automatically added to agent configuration
so no manual operations will be needed to update agent setup.
kloczek
--
Tomasz Kłoczko <kloczek@fedoraproject.org>, May 2018