3 %bcond_with pgsql # enable postgresql support (by default use mysql)
6 Summary: zabbix - network monitoring software
7 Summary(pl): zabbix - oprogramowanie do monitorowania sieci
12 Group: Networking/Admin
13 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}%{_beta}.tar.gz
14 # Source0-md5: 0ac320c6cd99f801d8cb7923ca790419
15 Source1: %{name}-agent.inetd
16 Source2: %{name}-trapper.inetd
17 URL: http://zabbix.sourceforge.net/
18 %{!?with_pgsql:BuildRequires: mysql-devel}
19 %{?with_pgsql:BuildRequires: postgresql-devel}
20 BuildRequires: net-snmp-devel
21 BuildRequires: openssl-devel >= 0.9.7d
22 BuildRequires: rpmbuild(macros) >= 1.159
23 Requires(pre): /bin/id
24 Requires(pre): /usr/bin/getgid
25 Requires(pre): /usr/sbin/groupadd
26 Requires(pre): /usr/sbin/useradd
27 Requires(postun): /usr/sbin/groupdel
28 Requires(postun): /usr/sbin/userdel
29 Provides: group(zabbix)
30 Provides: user(zabbix)
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _sysconfdir /etc/%{name}
34 %define htmldir /home/services/html/zabbix
37 zabbix is software that monitors numerous parameters of a network and
38 the servers on that network. zabbix is a useful tool for monitoring
39 the health and integrity of servers. zabbix uses a flexible
40 notification mechanism that allows users to configure email based
41 alerts for virtually any event. All monitored parameters are stored in
42 a database. zabbix offers excellent reporting and data visualisation
43 features based on the stored data. zabbix supports both polling and
44 trapping. All zabbix reports and statistics, as well as configuration
45 parameters, are accessed through a web-based front end.
48 zabbix to oprogramowanie do monitorowania licznych parametrów sieci i
49 serwerów sieciowych. zabbix jest przydatny przy monitorowaniu
50 dzia³ania serwerów. zabbix korzysta z elastycznego mechanizmu
51 powiadamiania, który pozwala u¿ytkownikom konfigurowaæ powiadamianie
52 poczt± elektroniczn± dla praktycznie wszelkich zdarzeñ. Monitorowane
53 parametry s± przechowywane w bazie danych. zabbix oferuje, w oparciu o
54 przechowywane dane, ¶wietne raportowanie i funkcje wizualizacji.
55 zabbix wspiera zarówno odpytywanie, jak i pu³apkowanie. Dostêp do
56 wszystkich raportów i statystyk zabbiksa jest mo¿liwy poprzez
57 interfejs oparty o WWW.
60 Summary: PHP frontend for zabbix
61 Summary(pl): Interfejs PHP dla zabbiksa
62 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.
155 %setup -q -n %{name}-%{version}%{_beta}
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 if [ -n "`/usr/bin/getgid zabbix`" ]; then
181 if [ "`/usr/bin/getgid zabbix`" != "111" ]; then
182 echo "Error: group zabbix doesn't have gid=111. Correct this before installing zabbix." 1>&2
186 /usr/sbin/groupadd -g 111 zabbix
188 if [ -n "`/bin/id -u zabbix 2>/dev/null`" ]; then
189 if [ "`/bin/id -u zabbix`" != "111" ]; then
190 echo "Error: user zabbix doesn't have uid=111. Correct this before installing zabbix." 1>&2
194 /usr/sbin/useradd -d / -u 111 -g zabbix -c "Zabbix User" -s /bin/false zabbix
198 if [ "$1" = "0" ]; then
204 if [ -f /var/lock/subsys/rc-inetd ]; then
205 /etc/rc.d/init.d/rc-inetd reload
207 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
211 if [ -f /var/lock/subsys/rc-inetd ]; then
212 /etc/rc.d/init.d/rc-inetd reload
216 if [ -f /var/lock/subsys/rc-inetd ]; then
217 /etc/rc.d/init.d/rc-inetd reload
219 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
222 %postun trapper-inetd
223 if [ -f /var/lock/subsys/rc-inetd ]; then
224 /etc/rc.d/init.d/rc-inetd reload
228 %defattr(644,root,root,755)
229 %doc doc/Zabbix\ Manual.pdf AUTHORS ChangeLog FAQ TODO create bin/ZabbixW32.exe
230 %attr(750,root,zabbix) %dir %{_sysconfdir}
233 %defattr(644,root,root,755)
237 %defattr(644,root,root,755)
238 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agent.conf
239 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/zabbix-agent
240 %attr(755,root,root) %{_sbindir}/zabbix_agent
242 %files agent-standalone
243 %defattr(644,root,root,755)
244 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_agentd.conf
245 %attr(755,root,root) %{_sbindir}/zabbix_agentd
248 %defattr(644,root,root,755)
249 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_suckerd.conf
250 %attr(755,root,root) %{_sbindir}/zabbix_suckerd
253 %defattr(644,root,root,755)
254 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_trapper.conf
255 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/zabbix-trapper
256 %attr(755,root,root) %{_sbindir}/zabbix_trapper
258 %files trapper-standalone
259 %defattr(644,root,root,755)
260 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_trapperd.conf
261 %attr(755,root,root) %{_sbindir}/zabbix_trapperd
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_sbindir}/zabbix_sender