2 # - initscript for zabbix-server, zabbix-proxy and zabbix-java
4 # /lib/systemd/system/zabbix_java.service
6 # /var/lib/zabbix/zabbix.db
9 %bcond_without pgsql # enable PostgreSQL support
10 %bcond_without sqlite3 # enable sqlite3 support
11 %bcond_without mysql # enable MySQL support
12 %bcond_without java # disable java support
13 %bcond_without agent2 # disable bulding of Go based agent2
15 %define databases %{?with_sqlite3:sqlite3} %{?with_pgsql:postgresql} %{?with_mysql:mysql}
16 %define any_database %{with pgsql}%{with mysql}%{with sqlite3}
22 %define php_min_version 7.2.5
23 Summary: Zabbix - network monitoring software
24 Summary(pl.UTF-8): Zabbix - oprogramowanie do monitorowania sieci
29 Group: Networking/Utilities
30 # https://www.zabbix.com/download_sources
31 Source0: https://cdn.zabbix.com/zabbix/sources/stable/5.4/%{name}-%{version}.tar.gz
32 # Source0-md5: 5dccb536c164e45c7d5c1a5a9d64be43
33 Source100: go-vendor.tar.xz
34 # Source100-md5: 61f2ee9647280765b622a5e1e8cdfbba
35 Source1: %{name}-apache.conf
36 Source2: %{name}_server.service
37 Source3: %{name}_agentd.service
38 Source4: %{name}_proxy.service
39 Source5: %{name}_java.service
40 Source6: %{name}.tmpfiles
41 Source7: %{name}_agentd.init
42 Source8: %{name}_agent2.init
46 tar -caf ~/go-vendor.tar.xz -C ../../ src/go/vendor
49 Patch1: sqlite3_dbname.patch
50 Patch2: always_compile_ipc.patch
51 Patch3: go-destdir.patch
52 Patch4: go-vendor.patch
53 URL: https://www.zabbix.com/
54 BuildRequires: OpenIPMI-devel
55 BuildRequires: autoconf
56 BuildRequires: automake >= 1:1.15
57 BuildRequires: curl-devel
58 BuildRequires: iksemel-devel
59 %{?with_java:BuildRequires: jdk}
60 BuildRequires: rpm-build >= 4.6
61 %{?with_java:BuildRequires: rpm-pld-macros-javaprov}
62 %{?with_agent2:BuildRequires: golang >= 1.13}
63 BuildRequires: libevent-devel
64 BuildRequires: libssh2-devel
65 BuildRequires: libtool
66 BuildRequires: libxml2-devel
67 %{?with_mysql:BuildRequires: mysql-devel}
68 BuildRequires: net-snmp-devel
69 BuildRequires: openldap-devel >= 2.4.6
70 BuildRequires: openssl-devel >= 0.9.7d
71 BuildRequires: pcre-devel
72 %{?with_pgsql:BuildRequires: postgresql-devel}
73 BuildRequires: rpmbuild(macros) >= 2.009
74 %{?with_sqlite3:BuildRequires: sqlite3-devel}
75 BuildRequires: tar >= 1:1.22
76 BuildRequires: unixODBC-devel
78 BuildRequires: zlib-devel
79 Requires: %{name}-agentd = %{version}-%{release}
80 Requires: %{name}-frontend-php = %{version}-%{release}
81 Requires: %{name}-server = %{version}-%{release}
82 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84 %define _sysconfdir /etc/%{name}
85 %define _appdir %{_datadir}/%{name}
86 %define _webapps /etc/webapps
87 %define _webapp %{name}
90 Zabbix is software that monitors numerous parameters of a network and
91 the servers on that network. It is a useful tool for monitoring the
92 health and integrity of servers. Zabbix uses a flexible notification
93 mechanism that allows users to configure email based alerts for
94 virtually any event. All monitored parameters are stored in a
95 database. Zabbix offers excellent reporting and data visualisation
96 features based on the stored data. Zabbix supports both polling and
97 trapping. All Zabbix reports and statistics, as well as configuration
98 parameters, are accessed through a web-based front end.
100 %description -l pl.UTF-8
101 Zabbix to oprogramowanie do monitorowania licznych parametrów sieci i
102 serwerów sieciowych. Jest przydatny przy monitorowaniu działania
103 serwerów. Jorzysta z elastycznego mechanizmu powiadamiania, który
104 pozwala użytkownikom konfigurować powiadamianie pocztą elektroniczną
105 dla praktycznie wszelkich zdarzeń. Monitorowane parametry są
106 przechowywane w bazie danych. W oparciu o przechowywane dane Zabbix
107 oferuje świetne raportowanie i funkcje wizualizacji. Wspiera zarówno
108 odpytywanie jak i pułapkowanie. Dostęp do wszystkich raportów i
109 statystyk Zabbiksa jest możliwy poprzez interfejs oparty o WWW.
112 Summary: Common files for Zabbix monitoring software
113 Summary(pl.UTF-8): Wspólne pliki dla oprogramowania monitorującego Zabbix
114 Group: Networking/Utilities
115 Requires(postun): /usr/sbin/groupdel
116 Requires(postun): /usr/sbin/userdel
117 Requires(pre): /bin/id
118 Requires(pre): /usr/bin/getgid
119 Requires(pre): /usr/sbin/groupadd
120 Requires(pre): /usr/sbin/useradd
121 Provides: group(zabbix)
122 Provides: user(zabbix)
125 Common files for Zabbix monitoring software.
127 %description common -l pl.UTF-8
128 Wspólne pliki dla oprogramowania monitorującego Zabbix.
131 Summary: Zabbix Agent
132 Summary(pl.UTF-8): Agenta Zabbiksa
133 Group: Networking/Utilities
134 Requires: %{name}-common = %{version}-%{release}
135 Requires: systemd-units >= 38
136 Obsoletes: zabbix-agent-inetd
137 Obsoletes: zabbix-agent-standalone
138 Requires(post,preun): /sbin/chkconfig
142 Zabbix agent collects data from the local system for a Zabbix server.
144 %description agentd -l pl.UTF-8
145 Agent zbiera dane z lokalnej maszyny dla serwera Zabbix.
148 Summary: Zabbix Agent 2
149 Group: Networking/Utilities
150 URL: https://www.zabbix.com/documentation/current/manual/concepts/agent2
151 Requires: %{name}-common = %{version}-%{release}
152 Requires(post,preun): /sbin/chkconfig
156 Zabbix agent 2 is a new generation of Zabbix agent and may be used in
157 place of Zabbix agent.
159 Zabbix agent 2 has been developed to:
160 - reduce the number of TCP connections
161 - have greater check concurrency
162 - be easily extendible with plugins.
164 A plugin should be able to:
165 - provide trivial checks consisting of only a few simple lines of code
166 - provide complex checks consisting of long-running scripts and
167 standalone data gathering with periodic sending back of the data
168 - be a drop-in replacement for Zabbix agent (in that it supports all
169 the previous functionality)
171 Passive checks work similarly to Zabbix agent. Active checks support
172 scheduled/flexible intervals and check concurrency within one active
175 %package frontend-php
176 Summary: PHP frontend for Zabbix
177 Summary(pl.UTF-8): Interfejs PHP dla Zabbiksa
178 Group: Applications/WWW
179 Requires: php(bcmath)
180 Requires: php(core) >= %{php_min_version}
183 Requires: php(gettext)
185 Requires: php(mbstring)
187 Requires: php(session)
188 Requires: php(sockets)
190 Requires: php(xmlreader)
191 Requires: php(xmlwriter)
193 Requires: webserver(alias)
194 Requires: webserver(indexfile)
195 Requires: webserver(php)
198 Suggests: php(sqlite3)
200 Suggests: php(sysvsem)
203 %description frontend-php
204 This package provides web based (PHP) frontend for Zabbix.
206 %description frontend-php -l pl.UTF-8
207 Ten pakiet dostarcza napisany w PHP frontend dla Zabbiksa.
210 Summary: Program retrieving data from Zabbix agent
211 Summary(pl.UTF-8): Program odpytujÄcy agenta Zabbiksa
212 Group: Networking/Utilities
215 This package provides a program retrieving data from Zabbix agent.
217 %description get -l pl.UTF-8
218 Ten pakiet zawiera program odpytujÄcy agenta Zabbiksa.
221 Summary: Zabbix proxy
222 Summary(pl.UTF-8): Proxy do Zabbiksa
223 Group: Networking/Utilities
224 Requires: %{name}-common = %{version}-%{release}
225 Requires: systemd-units >= 38
226 Requires: zabbix-proxy(db) = %{version}-%{release}
229 This package provides the Zabbix proxy.
231 %description proxy -l pl.UTF-8
232 Ten pakiet zawiera proxy Zabbix.
235 Summary: MySQL support for Zabbix proxy
236 Summary(pl.UTF-8): Obsługa MySQL dla proxy do Zabbiksa
237 Group: Networking/Utilities
238 Provides: %{name}-proxy(db) = %{version}-%{release}
239 Obsoletes: zabbix-proxy-postgresql
240 Obsoletes: zabbix-proxy-sqlite3
242 %description proxy-mysql
243 This package provides the Zabbix proxy binary with MySQL support.
245 %description proxy-mysql -l pl.UTF-8
246 Ten pakiet zawiera proxy Zabbix z obsługą MySQL.
248 %package proxy-postgresql
249 Summary: PostgreSQL support for Zabbix proxy
250 Summary(pl.UTF-8): Obsługa PostgreSQL dla proxy do Zabbiksa
251 Group: Networking/Utilities
252 Provides: %{name}-proxy(db) = %{version}-%{release}
253 Obsoletes: zabbix-proxy-mysql
254 Obsoletes: zabbix-proxy-sqlite3
256 %description proxy-postgresql
257 This package provides the Zabbix proxy binary with PostgreSQL support.
259 %description proxy-postgresql -l pl.UTF-8
260 Ten pakiet zawiera proxy Zabbix z obsługą PostgreSQL.
262 %package proxy-sqlite3
263 Summary: SQLite 3 support for Zabbix proxy
264 Summary(pl.UTF-8): Obsługa SQLite 3 dla proxy do Zabbiksa
265 Group: Networking/Utilities
266 Provides: %{name}-proxy(db) = %{version}-%{release}
267 Obsoletes: zabbix-proxy-mysql
268 Obsoletes: zabbix-proxy-postgresql
270 %description proxy-sqlite3
271 This package provides the Zabbix proxy binary with SQLite 3 support.
273 %description proxy-sqlite3 -l pl.UTF-8
274 Ten pakiet zawiera proxy Zabbix z obsługą SQLite 3.
277 Summary: Zabbix sender
278 Summary(pl.UTF-8): Program zawiadamiający Zabbiksa
279 Group: Networking/Utilities
282 This package provides the Zabbix sender.
284 %description sender -l pl.UTF-8
285 Ten pakiet zawiera program zawiadamiający Zabbiksa.
288 Summary: Zabbix server
289 Summary(pl.UTF-8): Serwer Zabbiksa
290 Group: Networking/Utilities
291 Requires: %{name}-common = %{version}-%{release}
292 Requires: %{name}-server(db) = %{version}-%{release}
293 Requires: systemd-units >= 38
294 Obsoletes: zabbix-suckerd
295 Obsoletes: zabbix-trapper-inetd
296 Obsoletes: zabbix-trapper-standalone
299 This package provides the Zabbix server.
301 %description server -l pl.UTF-8
302 Ten pakiet zawiera serwer Zabbiksa.
304 %package server-mysql
305 Summary: MySQL support for Zabbix server
306 Summary(pl.UTF-8): Obsługa MySQL sla serwera Zabbiksa
307 Group: Networking/Utilities
308 Provides: %{name}-server(db) = %{version}-%{release}
309 Obsoletes: zabbix-server-postgresql
310 Obsoletes: zabbix-server-sqlite3
312 %description server-mysql
313 This package provides the Zabbix server binary for use with MySQL
316 %description server-mysql -l pl.UTF-8
317 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych MySQL.
319 %package server-postgresql
320 Summary: PostgreSQL support for Zabbix server
321 Summary(pl.UTF-8): Obsługa PostgreSQL sla serwera Zabbiksa
322 Group: Networking/Utilities
323 Provides: %{name}-server(db) = %{version}-%{release}
324 Obsoletes: zabbix-server-mysql
325 Obsoletes: zabbix-server-sqlite3
327 %description server-postgresql
328 This package provides the Zabbix server binary for use with PostgreSQL
331 %description server-postgresql -l pl.UTF-8
332 Ten pakiet zawiera serwer Zabbiksa z obsługą bazy danych PostgreSQL.
335 Summary: Zabbix Java Gateway
336 Group: Networking/Utilities
337 Requires: %{name}-common = %{version}-%{release}
338 Requires: systemd-units >= 38
341 This package provides the Zabbix Java Gateway.
360 --enable-dependency-tracking \
362 %{__enable_disable agent2} \
364 %{__enable_disable java} \
384 for database in %{databases} ; do
385 if [ "$database" = "sqlite3" ] ; then
388 enable_server="--enable-server"
397 if [ "$enable_server" ] ; then
399 -C src/zabbix_server \
400 DESTDIR=$PWD/install-${database}
404 -C src/zabbix_proxy \
405 DESTDIR=$PWD/install-${database}
409 rm -rf $RPM_BUILD_ROOT
411 $RPM_BUILD_ROOT{%{_sysconfdir}/zabbix_agent2.conf.d,/etc/webapps/%{_webapp}} \
412 $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_appdir}/frontends/php} \
413 $RPM_BUILD_ROOT{/var/run/zabbix,/var/log/zabbix,%{systemdunitdir},%{systemdtmpfilesdir}}
416 DESTDIR=$RPM_BUILD_ROOT \
417 ZJG_DEST=$RPM_BUILD_ROOT%{_datadir}/zabbix_java
419 for database in %{databases} ; do
420 if [ "$database" != "sqlite3" ] ; then
421 cp -p install-$database/%{_sbindir}/zabbix_server \
422 $RPM_BUILD_ROOT%{_sbindir}/zabbix_server-$database
424 cp -p install-$database/%{_sbindir}/zabbix_proxy \
425 $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy-$database
428 if [ -n "$database" ] ; then
429 ln -sf zabbix_server-$database $RPM_BUILD_ROOT%{_sbindir}/zabbix_server
430 ln -sf zabbix_proxy-$database $RPM_BUILD_ROOT%{_sbindir}/zabbix_proxy
434 install -d $RPM_BUILD_ROOT/var/lib/zabbix
435 touch $RPM_BUILD_ROOT/var/lib/zabbix/zabbix.db
438 cp -r ui/* $RPM_BUILD_ROOT%{_appdir}/frontends/php
440 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
441 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
443 install %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_server.service
444 install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_agentd.service
445 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/zabbix_agentd
446 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/zabbix_agent2
447 install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_proxy.service
448 install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/zabbix_java.service
450 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/zabbix.conf
452 mv $RPM_BUILD_ROOT%{_appdir}/frontends/php/conf $RPM_BUILD_ROOT%{_sysconfdir}/frontend
453 ln -s --relative $RPM_BUILD_ROOT{%{_sysconfdir}/frontend,%{_appdir}/frontends/php/conf}
454 touch $RPM_BUILD_ROOT%{_sysconfdir}/frontend/zabbix.conf.php
457 mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/settings.sh $RPM_BUILD_ROOT%{_sysconfdir}/zabbix_java.conf
458 ln -s --relative $RPM_BUILD_ROOT{%{_sysconfdir}/zabbix_java.conf,%{_datadir}/zabbix_java/settings.sh}
459 mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback.xml $RPM_BUILD_ROOT%{_sysconfdir}/java-logback.xml
460 ln -s --relative $RPM_BUILD_ROOT{%{_sysconfdir}/java-logback.xml,%{_datadir}/zabbix_java/lib/logback.xml}
461 mv $RPM_BUILD_ROOT%{_datadir}/zabbix_java/lib/logback-console.xml $RPM_BUILD_ROOT%{_sysconfdir}/java-logback-console.xml
462 ln -s --relative $RPM_BUILD_ROOT{%{_sysconfdir}/java-logback-console.xml,%{_datadir}/zabbix_java/lib/logback-console.xml}
464 cat >$RPM_BUILD_ROOT%{_sbindir}/zabbix_java-start <<'EOF'
467 exec %{_datadir}/zabbix_java/startup.sh "$@"
470 cat >$RPM_BUILD_ROOT%{_sbindir}/zabbix_java-stop <<'EOF'
473 exec %{_datadir}/zabbix_java/shutdown.sh "$@"
478 rm -rf $RPM_BUILD_ROOT
480 %triggerin frontend-php -- apache1 < 1.3.37-3, apache1-base
481 %webapp_register apache %{_webapp}
483 %triggerun frontend-php -- apache1 < 1.3.37-3, apache1-base
484 %webapp_unregister apache %{_webapp}
486 %triggerin frontend-php -- apache < 2.2.0, apache-base
487 %webapp_register httpd %{_webapp}
489 %triggerun frontend-php -- apache < 2.2.0, apache-base
490 %webapp_unregister httpd %{_webapp}
493 %groupadd -g 111 zabbix
494 %useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
495 %addusertogroup -q zabbix proc
498 if [ "$1" = "0" ]; then
504 if [ "$1" = 1 ]; then
505 %banner -e %{name}-server <<-EOF
506 You should create database for Zabbix.
508 Running these should be fine in most cases:
509 mysqladmin create zabbix
510 zcat %{_docdir}/%{name}-server-mysql-%{version}/schema.sql.gz | mysql zabbix
511 zcat %{_docdir}/%{name}-server-mysql-%{version}/images.sql.gz | mysql zabbix
512 zcat %{_docdir}/%{name}-server-mysql-%{version}/data.sql.gz | mysql zabbix
515 ln -sf zabbix_server-mysql %{_sbindir}/zabbix_server || :
517 %post server-postgresql
518 if [ "$1" = 1 ]; then
519 %banner -e %{name}-server <<-EOF
520 You should create database for Zabbix.
522 Running these should be fine in most cases:
525 createdb -O zabbix zabbix
526 zcat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql.gz | psql -u zabbix zabbix
527 zcat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql.gz | psql -u zabbix zabbix
528 zcat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql.gz | psql -u zabbix zabbix
531 ln -sf zabbix_server-postgresql %{_sbindir}/zabbix_server || :
534 %systemd_post zabbix_server.service
537 %systemd_preun zabbix_server.service
540 if [ "$1" = "0" ]; then
541 if [ -L %{_sbindir}/zabbix_server ] ; then
542 rm -f %{_sbindir}/zabbix_server || :
548 /sbin/chkconfig --add zabbix_agentd
549 %service zabbix_agentd restart
550 %systemd_post zabbix_agentd.service
553 if [ "$1" = "0" ]; then
554 %service -q zabbix_agentd stop
555 /sbin/chkconfig --del zabbix_agentd
557 %systemd_preun zabbix_agentd.service
563 /sbin/chkconfig --add zabbix_agent2
564 %service zabbix_agent2 restart
567 if [ "$1" = "0" ]; then
568 %service -q zabbix_agent2 stop
569 /sbin/chkconfig --del zabbix_agent2
573 ln -sf zabbix_proxy-mysql %{_sbindir}/zabbix_proxy || :
575 %post proxy-postgresql
576 ln -sf zabbix_proxy-postgresql %{_sbindir}/zabbix_proxy || :
579 ln -sf zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
582 %systemd_post zabbix_proxy.service
585 %systemd_preun zabbix_proxy.service
591 %systemd_post zabbix_java.service
594 %systemd_preun zabbix_java.service
600 %defattr(644,root,root,755)
601 %doc AUTHORS ChangeLog README
604 %defattr(644,root,root,755)
605 %doc AUTHORS ChangeLog README
606 %attr(751,root,zabbix) %dir %{_sysconfdir}
607 %attr(751,root,http) %dir %{_sysconfdir}/frontend
609 %dir %{_appdir}/frontends
610 %dir %attr(770,root,zabbix) /var/run/zabbix
611 %dir %attr(775,root,zabbix) /var/log/zabbix
612 %{systemdtmpfilesdir}/zabbix.conf
615 %defattr(644,root,root,755)
616 %doc conf/zabbix_agentd/*.conf
617 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
618 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_agentd.conf.d
619 %attr(754,root,root) /etc/rc.d/init.d/zabbix_agentd
620 %attr(755,root,root) %{_sbindir}/zabbix_agentd
621 %{_mandir}/man8/zabbix_agentd*
622 %{systemdunitdir}/zabbix_agentd.service
626 %defattr(644,root,root,755)
627 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agent2.conf
628 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_agent2.conf.d
629 %attr(754,root,root) /etc/rc.d/init.d/zabbix_agent2
630 %attr(755,root,root) %{_sbindir}/zabbix_agent2
631 %{_mandir}/man8/zabbix_agent2.8*
635 %defattr(644,root,root,755)
636 %attr(750,root,http) %dir %{_webapps}/%{_webapp}
637 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
638 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
639 %ghost %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php
640 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/.htaccess
641 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/maintenance.inc.php
642 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/frontend/zabbix.conf.php.example
643 %{_appdir}/frontends/php
646 %defattr(644,root,root,755)
647 %attr(755,root,root) %{_bindir}/zabbix_get
648 %{_mandir}/man1/zabbix_get*
652 %defattr(644,root,root,755)
653 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_proxy.conf
654 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_proxy.conf.d
655 %ghost %{_sbindir}/zabbix_proxy
656 %{_mandir}/man8/zabbix_proxy*
657 %{systemdunitdir}/zabbix_proxy.service
662 %defattr(644,root,root,755)
663 %attr(755,root,root) %{_sbindir}/zabbix_proxy-mysql
667 %files proxy-postgresql
668 %defattr(644,root,root,755)
669 %attr(755,root,root) %{_sbindir}/zabbix_proxy-postgresql
674 %defattr(644,root,root,755)
675 %attr(755,root,root) %{_sbindir}/zabbix_proxy-sqlite3
679 %defattr(644,root,root,755)
680 %attr(755,root,root) %{_bindir}/zabbix_sender
681 %{_mandir}/man1/zabbix_sender*
685 %defattr(644,root,root,755)
686 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_server.conf
687 %dir %attr(751,root,zabbix) %{_sysconfdir}/zabbix_server.conf.d
688 %ghost %{_sbindir}/zabbix_server
689 %{_mandir}/man8/zabbix_server*
690 %{systemdunitdir}/zabbix_server.service
695 %defattr(644,root,root,755)
696 %doc database/mysql/*.sql
697 %attr(755,root,root) %{_sbindir}/zabbix_server-mysql
701 %files server-postgresql
702 %defattr(644,root,root,755)
703 %doc database/postgresql/*.sql
704 %attr(755,root,root) %{_sbindir}/zabbix_server-postgresql
709 %defattr(644,root,root,755)
710 %attr(755,root,root) %{_sbindir}/zabbix_java-start
711 %attr(755,root,root) %{_sbindir}/zabbix_java-stop
712 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_java.conf
713 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/java-logback.xml
714 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/java-logback-console.xml
715 %dir %{_datadir}/zabbix_java
716 %{_datadir}/zabbix_java/bin
717 %{_datadir}/zabbix_java/lib
718 %{_datadir}/zabbix_java/settings.sh
719 %attr(755,root,root) %{_datadir}/zabbix_java/shutdown.sh
720 %attr(755,root,root) %{_datadir}/zabbix_java/startup.sh
721 %{systemdunitdir}/zabbix_java.service