3 %bcond_with pgsql # enable PostgreSQL support (by default use mysql)
5 Summary: zabbix - network monitoring software
6 Summary(pl): zabbix - oprogramowanie do monitorowania sieci
11 Group: Networking/Admin
12 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5: e83a3b92f13942081ed2f3fe3f3084d8
14 Source1: %{name}-agent.inetd
15 Source2: %{name}-trapper.inetd
16 URL: http://zabbix.sourceforge.net/
17 %{!?with_pgsql:BuildRequires: mysql-devel}
18 %{?with_pgsql:BuildRequires: postgresql-devel}
19 BuildRequires: net-snmp-devel
20 BuildRequires: openssl-devel >= 0.9.7d
21 BuildRequires: rpmbuild(macros) >= 1.202
22 Requires(pre): /bin/id
23 Requires(pre): /usr/bin/getgid
24 Requires(pre): /usr/sbin/groupadd
25 Requires(pre): /usr/sbin/useradd
26 Requires(postun): /usr/sbin/groupdel
27 Requires(postun): /usr/sbin/userdel
28 Provides: group(zabbix)
29 Provides: user(zabbix)
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _sysconfdir /etc/%{name}
33 %define htmldir /home/services/html/zabbix
36 zabbix is software that monitors numerous parameters of a network and
37 the servers on that network. zabbix is a useful tool for monitoring
38 the health and integrity of servers. zabbix uses a flexible
39 notification mechanism that allows users to configure email based
40 alerts for virtually any event. All monitored parameters are stored in
41 a database. zabbix offers excellent reporting and data visualisation
42 features based on the stored data. zabbix supports both polling and
43 trapping. All zabbix reports and statistics, as well as configuration
44 parameters, are accessed through a web-based front end.
47 zabbix to oprogramowanie do monitorowania licznych parametrów sieci i
48 serwerów sieciowych. zabbix jest przydatny przy monitorowaniu
49 dzia³ania serwerów. zabbix korzysta z elastycznego mechanizmu
50 powiadamiania, który pozwala u¿ytkownikom konfigurowaæ powiadamianie
51 poczt± elektroniczn± dla praktycznie wszelkich zdarzeñ. Monitorowane
52 parametry s± przechowywane w bazie danych. zabbix oferuje, w oparciu o
53 przechowywane dane, ¶wietne raportowanie i funkcje wizualizacji.
54 zabbix wspiera zarówno odpytywanie, jak i pu³apkowanie. Dostêp do
55 wszystkich raportów i statystyk zabbiksa jest mo¿liwy poprzez
56 interfejs oparty o WWW.
59 Summary: PHP frontend for zabbix
60 Summary(pl): Interfejs PHP dla zabbiksa
61 Group: Networking/Admin
65 %{!?with_pgsql:Requires: php-mysql}
66 %{?with_pgsql:Requires: php-pgsql}
68 %description frontend-php
69 This package provides web based (PHP) frontend for zabbix.
71 %description frontend-php -l pl
72 Ten pakiet dostarcza napisany w PHP frontend dla zabbiksa.
75 Summary: inetd agent for zabbix
76 Summary(pl): Wersja inetd agenta zabbiksa
77 Group: Networking/Admin
78 Requires: %{name} = %{version}
80 Obsoletes: %{name}-agent-standalone
82 %description agent-inetd
83 This package provides inetd version of zabbix agent.
85 %description agent-inetd -l pl
86 Ten pakiet dostarcza agenta zabbiksa dla inetd.
88 %package agent-standalone
89 Summary: Standalone agent for zabbix
90 Summary(pl): Wersja wolnostoj±ca agenta zabbiksa
91 Group: Networking/Admin
92 Requires: %{name} = %{version}
93 Obsoletes: %{name}-agent-inetd
95 %description agent-standalone
96 This package provides standalone version of zabbix agent.
98 %description agent-standalone -l pl
99 Ten pakiet dostarcza wolnostoj±cej wersji agenta zabbiksa.
102 Summary: sucker daemon for zabbix
103 Summary(pl): Demon sucker dla zabbiksa
104 Group: Networking/Admin
105 Requires: %{name} = %{version}
106 %{!?with_pgsql:Requires: mysql}
107 %{?with_pgsql:Requires: postgresql}
110 This package provides the sucker daemon for zabbix.
112 %description suckerd -l pl
113 Ten pakiet zawiera demona sucker dla zabbiksa.
115 %package trapper-inetd
116 Summary: inetd trapper for zabbix
117 Summary(pl): Wersja inetd programu pu³apkuj±cego zabbiksa
118 Group: Networking/Admin
119 Requires: %{name} = %{version}
121 Obsoletes: %{name}-trapper-standalone
123 %description trapper-inetd
124 This package provides inetd version of zabbix trapper.
126 %description trapper-inetd -l pl
127 Ten pakiet zawiera program pu³apkuj±cy zabbiksa dla inetd.
129 %package trapper-standalone
130 Summary: Standalone trapper for zabbix
131 Summary(pl): Wersja wolnostoj±ca programu pu³apkuj±cego zabbiksa
132 Group: Networking/Admin
133 Requires: %{name} = %{version}
134 Obsoletes: %{name}-trapper-inetd
136 %description trapper-standalone
137 This package provides standalone version of zabbix trapper.
139 %description trapper-standalone -l pl
140 Ten pakiet zawiera wolnostoj±c± wersjê programu pu³apkuj±cego
144 Summary: zabbix's sender
145 Summary(pl): Program zawiadamiaj±cy zabbiksa
146 Group: Networking/Admin
149 This package provides the zabbix sender.
151 %description sender -l pl
152 Ten pakiet zawiera program zawiadamiaj±cy zabbiksa.
159 %{!?with_pgsql:--with-mysql} \
160 %{?with_pgsql:--with-pgsql} \
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/rc-inetd,%{_sbindir},%{htmldir}}
169 install bin/zabbix_* $RPM_BUILD_ROOT%{_sbindir}
170 install misc/conf/* $RPM_BUILD_ROOT%{_sysconfdir}
171 cp -r frontends/php/* $RPM_BUILD_ROOT%{htmldir}
173 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/zabbix-agent
174 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/zabbix-trapper
177 rm -rf $RPM_BUILD_ROOT
180 %groupadd -g 111 zabbix
181 %useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
184 if [ "$1" = "0" ]; then
190 if [ -f /var/lock/subsys/rc-inetd ]; then
191 /etc/rc.d/init.d/rc-inetd reload
193 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
197 if [ -f /var/lock/subsys/rc-inetd ]; then
198 /etc/rc.d/init.d/rc-inetd reload
202 if [ -f /var/lock/subsys/rc-inetd ]; then
203 /etc/rc.d/init.d/rc-inetd reload
205 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
208 %postun trapper-inetd
209 if [ -f /var/lock/subsys/rc-inetd ]; then
210 /etc/rc.d/init.d/rc-inetd reload
214 %defattr(644,root,root,755)
215 %doc doc/Zabbix\ Manual.pdf AUTHORS NEWS README ChangeLog create upgrades bin/ZabbixW32.exe
216 %attr(750,root,zabbix) %dir %{_sysconfdir}
219 %defattr(644,root,root,755)
223 %defattr(644,root,root,755)
224 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agent.conf
225 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/zabbix-agent
226 %attr(755,root,root) %{_sbindir}/zabbix_agent
228 %files agent-standalone
229 %defattr(644,root,root,755)
230 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
231 %attr(755,root,root) %{_sbindir}/zabbix_agentd
234 %defattr(644,root,root,755)
235 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_suckerd.conf
236 %attr(755,root,root) %{_sbindir}/zabbix_suckerd
239 %defattr(644,root,root,755)
240 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_trapper.conf
241 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/zabbix-trapper
242 %attr(755,root,root) %{_sbindir}/zabbix_trapper
244 %files trapper-standalone
245 %defattr(644,root,root,755)
246 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_trapperd.conf
247 %attr(755,root,root) %{_sbindir}/zabbix_trapperd
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_sbindir}/zabbix_sender