]>
Commit | Line | Data |
---|---|---|
714deaca | 1 | # TODO: |
66e15cdf ER |
2 | # - package requisites for unifished packages -nsclient and -nwstat |
3 | # REQUIREMENTS explains the dependencies. | |
e0659d56 | 4 | # - patch6 is not lib64 safe |
0c3e72f0 | 5 | %include /usr/lib/rpm/macros.perl |
714deaca | 6 | Summary: Host/service/network monitoring program plugins for Nagios |
c43d265d | 7 | Summary(pl.UTF-8): Wtyczki do monitorowania hostów/usług/sieci dla Nagiosa |
061f9822 | 8 | Name: nagios-plugins |
59f47859 | 9 | Version: 1.4.11 |
e81e303b | 10 | Release: 4 |
061f9822 TO |
11 | License: GPL v2 |
12 | Group: Networking | |
13 | Source0: http://dl.sourceforge.net/nagiosplug/%{name}-%{version}.tar.gz | |
59f47859 | 14 | # Source0-md5: 042783a2180a6987e0b403870b3d01f7 |
006d23dd | 15 | Source1: nagios-utils.php |
ed6320d7 ER |
16 | Patch0: %{name}-tainted.patch |
17 | Patch1: %{name}-contrib-API.patch | |
ed6320d7 ER |
18 | Patch3: %{name}-subst.patch |
19 | Patch4: %{name}-noroot.patch | |
e88a9fb6 | 20 | Patch5: %{name}-check_ping-socket-filter-warning.patch |
e6077bc8 | 21 | Patch6: %{name}-path.patch |
e81e303b ER |
22 | Patch7: %{name}-pgsql.patch |
23 | #Patch: %{name}-shared.patch # needs finishing | |
a71518d2 | 24 | URL: http://www.nagiosplugins.org/ |
cb162c98 JB |
25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
9ebf5186 | 27 | BuildRequires: file |
46905887 | 28 | BuildRequires: gettext-devel >= 0.14.3 |
20b088a6 | 29 | BuildRequires: libtool |
061f9822 TO |
30 | BuildRequires: mysql-devel |
31 | BuildRequires: net-snmp-devel | |
a71518d2 | 32 | BuildRequires: openldap-devel >= 2.3.0 |
c93868f5 | 33 | BuildRequires: openssl-devel >= 0.9.7d |
714deaca | 34 | BuildRequires: perl-Net-SNMP |
46905887 | 35 | BuildRequires: postgresql-devel |
714deaca | 36 | BuildRequires: radiusclient-devel |
0c3e72f0 | 37 | BuildRequires: rpm-perlprov >= 4.1-13 |
a5586f9e | 38 | BuildRequires: rpm-pythonprov |
e88a9fb6 | 39 | BuildRequires: rpmbuild(macros) >= 1.177 |
9050d80b | 40 | Requires: nagios-core |
061f9822 TO |
41 | Obsoletes: netsaint-plugins |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
11ba1eec ER |
44 | %define _pluginarchdir %{_libdir}/nagios/plugins |
45 | %define _pluginlibdir %{_prefix}/lib/nagios/plugins | |
4cce8111 | 46 | %define _noautoreqfiles utils.pm |
0c3e72f0 ER |
47 | # Not available in Ac |
48 | %define _noautoreq 'perl(DBD::Oracle)' 'perl(Net::Arping)' 'perl(RRD::File)' 'perl(a)' 'perl(packet_utils)' 'perl(snmputil)' | |
e94738d5 | 49 | |
061f9822 | 50 | %description |
7b53302e JB |
51 | Nagios is a program that will monitor hosts and services on your |
52 | network, and to email or page you when a problem arises or is | |
53 | resolved. Nagios runs on a Unix server as a background or daemon | |
54 | process, intermittently running checks on various services that you | |
55 | specify. The actual service checks are performed by separate "plugin" | |
56 | programs which return the status of the checks to Nagios. | |
714deaca | 57 | |
7b53302e JB |
58 | This package contains the basic plugins necessary for use with the |
59 | nagios package. | |
061f9822 | 60 | |
d5ac5ccb JR |
61 | %description -l pl.UTF-8 |
62 | Nagios to program monitorujący hosty i usługi w sieci i powiadamiający | |
63 | pocztą elektroniczną lub na pager o wystąpieniu lub rozwiązaniu | |
64 | problemów. Nagios działa na serwerze uniksowym w tle lub jako demon, | |
65 | regularnie przeprowadzając kontrolę różnych podanych mu usług. Sama | |
66 | kontrola usług jest wykonywana poprzez oddzielne "wtyczki" - programy | |
67 | zwracajace stan danej usługi do Nagiosa. | |
7b53302e | 68 | |
d5ac5ccb | 69 | Ten pakiet zawiera podstawowe wtyczki do używania z pakietem nagios. |
061f9822 | 70 | |
d54d11c9 ER |
71 | %package libs |
72 | Summary: Nagios plugins base libraries | |
ea463d6e | 73 | Summary(pl.UTF-8): Podstawowe biblioteki wtyczek Nagiosa |
d54d11c9 ER |
74 | Group: Networking |
75 | ||
76 | %description libs | |
ea463d6e JB |
77 | This package contains nagios plugins base libraries that plugins |
78 | depend on. | |
79 | ||
80 | %description libs -l pl.UTF-8 | |
81 | Ten pakiet zawiera podstawowe biblioteki wtyczek Nagiosa, wymagane | |
82 | przez wtyczki. | |
32bbd330 | 83 | |
d54d11c9 ER |
84 | # NOTE for sub package requires: |
85 | # Requires: nagios-core for plugins directory | |
86 | # and add Requires: %{name}-libs = %{version}-%{release} for utils.{sh,pm,php} | |
714deaca | 87 | %package snmp |
7b53302e | 88 | Summary: Nagios plugins using SNMP protocol to query information |
c43d265d | 89 | Summary(pl.UTF-8): Wtyczki Nagiosa używające protokołu SNMP w celu uzyskania informacji |
714deaca | 90 | Group: Networking |
e94738d5 | 91 | # for utils.pm |
d54d11c9 | 92 | Requires: %{name}-libs = %{version}-%{release} |
dcd5579b | 93 | Requires: net-snmp-utils |
714deaca ER |
94 | Requires: perl-Net-SNMP |
95 | ||
96 | %description snmp | |
dcd5579b | 97 | Nagios plugins using SNMP protocol to query information. |
714deaca | 98 | |
d5ac5ccb JR |
99 | %description snmp -l pl.UTF-8 |
100 | Wtyczki Nagiosa używające protokołu SNMP w celu uzyskania informacji. | |
7b53302e | 101 | |
714deaca | 102 | %package samba |
7b53302e | 103 | Summary: Nagios plugin to check remote disk using smbclient |
c43d265d | 104 | Summary(pl.UTF-8): Wtyczka Nagiosa do zdalnego sprawdzania dysku z użyciem smbclienta |
714deaca | 105 | Group: Networking |
e94738d5 | 106 | # for utils.pm |
d54d11c9 | 107 | Requires: %{name}-libs = %{version}-%{release} |
714deaca ER |
108 | Requires: samba-client |
109 | ||
110 | %description samba | |
111 | Perl Check SMB Disk plugin for Nagios. | |
112 | ||
d5ac5ccb JR |
113 | %description samba -l pl.UTF-8 |
114 | Perlowa wtyczka dla Nagiosa sprawdzająca dyski SMB. | |
7b53302e | 115 | |
79cbab38 | 116 | %package -n nagios-plugin-check_sensors |
7b53302e | 117 | Summary: Nagios plugin to check hardware status using the lm_sensors package |
c43d265d | 118 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania stanu sprzętu przy użyciu pakietu lm_sensors |
714deaca | 119 | Group: Networking |
e94738d5 | 120 | # for utils.sh |
d54d11c9 | 121 | Requires: %{name}-libs = %{version}-%{release} |
714deaca | 122 | Requires: lm_sensors |
cedf62c8 ER |
123 | Provides: nagios-plugins-sensors = %{version}-%{release} |
124 | Obsoletes: nagios-plugins-sensors | |
714deaca | 125 | |
79cbab38 | 126 | %description -n nagios-plugin-check_sensors |
714deaca ER |
127 | This plugin checks hardware status using the lm_sensors package. |
128 | ||
d5ac5ccb JR |
129 | %description -n nagios-plugin-check_sensors -l pl.UTF-8 |
130 | Ta wtyczka sprawdza stan sprzętu przy użyciu pakietu lm_sensors. | |
7b53302e | 131 | |
714deaca | 132 | %package mysql |
7b53302e | 133 | Summary: Nagios plugin to test a MySQL DBMS |
c43d265d | 134 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania systemu baz danych MySQL |
714deaca | 135 | Group: Networking |
e88a9fb6 | 136 | Requires: nagios-core |
714deaca ER |
137 | |
138 | %description mysql | |
7b53302e JB |
139 | This plugin tests a MySQL DBMS to determine whether it is active and |
140 | accepting queries. | |
141 | ||
d5ac5ccb JR |
142 | %description mysql -l pl.UTF-8 |
143 | Ta wtyczka sprawdza serwer baz danych MySQL, aby określić, czy jest | |
7b53302e | 144 | aktywny i przyjmuje zapytania. |
714deaca | 145 | |
79cbab38 | 146 | %package -n nagios-plugin-check_pgsql |
7b53302e | 147 | Summary: Nagios plugin to test a PostgreSQL DBMS |
c43d265d | 148 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania systemu baz danych PostgreSQL |
714deaca | 149 | Group: Networking |
efcaf176 | 150 | Requires: nagios-core |
cedf62c8 ER |
151 | Provides: nagios-plugins-pgsql = %{version}-%{release} |
152 | Obsoletes: nagios-plugins-pgsql | |
714deaca | 153 | |
79cbab38 | 154 | %description -n nagios-plugin-check_pgsql |
7b53302e JB |
155 | This plugin tests a PostgreSQL DBMS to determine whether it is active |
156 | and accepting queries. In its current operation, it simply connects to | |
157 | the specified database, and then disconnects. If no database is | |
158 | specified, it connects to the template1 database, which is present in | |
159 | every functioning PostgreSQL DBMS. | |
160 | ||
d5ac5ccb JR |
161 | %description -n nagios-plugin-check_pgsql -l pl.UTF-8 |
162 | Ta wtyczka sprawdza serwer baz danych PostgreSQL, aby określić, czy | |
163 | jest aktywny i przyjmuje zapytania. Aktualnie po prostu łączy się do | |
164 | określonej bazy danych i rozłącza. Jeśli nie podano bazy danych, łączy | |
165 | się do bazy danych template1, obecnej w każdym działającym systemie | |
7b53302e | 166 | PostgreSQL. |
714deaca | 167 | |
79cbab38 | 168 | %package -n nagios-plugin-check_radius |
7b53302e | 169 | Summary: Nagios plugin to test a radius server to see if it is accepting connections |
c43d265d | 170 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania serwera radius pod kątem przyjmowania połączeń |
714deaca | 171 | Group: Networking |
efcaf176 | 172 | Requires: nagios-core |
714deaca | 173 | Requires: radiusclient |
cedf62c8 ER |
174 | Provides: nagios-plugins-radius = %{version}-%{release} |
175 | Obsoletes: nagios-plugins-radius | |
714deaca | 176 | |
79cbab38 | 177 | %description -n nagios-plugin-check_radius |
9050d80b ER |
178 | This plugin tests a radius server to see if it is accepting |
179 | connections. | |
714deaca | 180 | |
d5ac5ccb JR |
181 | %description -n nagios-plugin-check_radius -l pl.UTF-8 |
182 | Ta wtyczka sprawdza serwer usługi radius, aby zobaczyć, czy przyjmuje | |
183 | połączenia. | |
7b53302e | 184 | |
79cbab38 | 185 | %package -n nagios-plugin-check_game |
7b53302e | 186 | Summary: Nagios plugin to check status of Internet game servers |
c43d265d | 187 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania stanu serwerów gier internetowych |
714deaca | 188 | Group: Networking |
efcaf176 | 189 | Requires: nagios-core |
714deaca | 190 | Requires: qstat |
cedf62c8 ER |
191 | Provides: nagios-plugins-qstat = %{version}-%{release} |
192 | Obsoletes: nagios-plugins-qstat | |
714deaca | 193 | |
79cbab38 | 194 | %description -n nagios-plugin-check_game |
7b53302e JB |
195 | This plugin uses the 'qstat' command, the popular game server status |
196 | query tool. | |
714deaca | 197 | |
7b53302e JB |
198 | QStat is a command-line program that displays information about |
199 | Internet game servers. | |
714deaca | 200 | |
7b53302e JB |
201 | The servers are either down, non-responsive, or running a game. For |
202 | servers running a game, the server name, map name, current number of | |
203 | players, and response time are displayed. Server rules and player | |
204 | information may also be displayed. | |
205 | ||
d5ac5ccb JR |
206 | %description -n nagios-plugin-check_game -l pl.UTF-8 |
207 | Ta wtyczka używa polecenia 'qstat' - popularnego narzędzia do zapytań | |
208 | o stan serwerów gier. | |
7b53302e | 209 | |
d5ac5ccb | 210 | QStat to program działający z linii poleceń wyświetlający informacje o |
7b53302e JB |
211 | serwerach gier internetowych. |
212 | ||
d5ac5ccb JR |
213 | Serwery mogą być wyłączone, nie odpowiadać, bądź mieć uruchomioną grę. |
214 | Dla serwerów z grami wyświetlanea są: nazwa serwera, nazwa mapy, | |
215 | aktualna liczba graczy i czas odpowiedzi. Mogą być dodatkowo | |
216 | wyświetlone reguły serwera i informacje o graczach. | |
714deaca | 217 | |
79cbab38 | 218 | %package -n nagios-plugin-check_ldap |
7b53302e | 219 | Summary: Nagios plugin to check LDAP servers |
c43d265d | 220 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania serwerów LDAP |
66e15cdf | 221 | Group: Networking |
efcaf176 | 222 | Requires: nagios-core |
cedf62c8 ER |
223 | Provides: nagios-plugins-ldap = %{version}-%{release} |
224 | Obsoletes: nagios-plugins-ldap | |
66e15cdf | 225 | |
79cbab38 | 226 | %description -n nagios-plugin-check_ldap |
66e15cdf ER |
227 | Nagios plugin to check LDAP servers. |
228 | ||
d5ac5ccb JR |
229 | %description -n nagios-plugin-check_ldap -l pl.UTF-8 |
230 | Wtyczka Nagiosa do sprawdzania serwerów LDAP. | |
7b53302e | 231 | |
79cbab38 | 232 | %package -n nagios-plugin-check_ntp |
b4f719a1 | 233 | Summary: Nagios plugin to check time using NTP protocol |
c43d265d | 234 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania czasu przy użyciu protokołu NTP |
b4f719a1 | 235 | Group: Networking |
5b0b82a7 | 236 | # for utils.pm |
d54d11c9 | 237 | Requires: %{name}-libs = %{version}-%{release} |
b4f719a1 | 238 | Requires: ntp-client |
cedf62c8 ER |
239 | Provides: nagios-plugins-ntp = %{version}-%{release} |
240 | Obsoletes: nagios-plugins-ntp | |
b4f719a1 | 241 | |
79cbab38 | 242 | %description -n nagios-plugin-check_ntp |
b4f719a1 ER |
243 | Checks the local timestamp offset versus <host> with ntpdate. Checks |
244 | the jitter/dispersion of clock signal between <host> and its sys.peer | |
245 | with ntpq. | |
246 | ||
d5ac5ccb JR |
247 | %description -n nagios-plugin-check_ntp -l pl.UTF-8 |
248 | Ta wtyczka sprawdza przesunięcie lokalnego czasu względem danego hosta | |
249 | przy użyciu ntpdate. Sprawdza wahania/dyspersję sygnału zegara | |
250 | pomiędzy hostem a jego sys.peer przy użyciu ntpq. | |
46905887 | 251 | |
79cbab38 | 252 | %package -n nagios-plugin-check_dns |
b4f719a1 | 253 | Summary: Nagios plugin to check DNS with nslookup |
c43d265d | 254 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania DNS-u przy użyciu nslookup |
b4f719a1 | 255 | Group: Networking |
b4f719a1 | 256 | Requires: bind-utils |
e88a9fb6 | 257 | Requires: nagios-core |
cedf62c8 ER |
258 | Provides: nagios-plugins-dns = %{version}-%{release} |
259 | Obsoletes: nagios-plugins-dns | |
b4f719a1 | 260 | |
79cbab38 | 261 | %description -n nagios-plugin-check_dns |
b4f719a1 ER |
262 | This plugin uses the nslookup program to obtain the IP address for the |
263 | given host/domain query. A optional DNS server to use may be | |
46905887 | 264 | specified. If no DNS server is specified, the default server(s) |
b4f719a1 ER |
265 | specified in /etc/resolv.conf will be used. |
266 | ||
d5ac5ccb JR |
267 | %description -n nagios-plugin-check_dns -l pl.UTF-8 |
268 | Ta wtyczka używa programu nslookup do uzyskania adresu IP danego dla | |
269 | danego zapytania o host/domenę. Można opcjonalnie podać serwer DNS, | |
270 | który ma być użyty. Jeśli nie podano serwera DNS, używany jest | |
271 | domyślny serwer (lub serwery) podany w /etc/resolv.conf. | |
46905887 | 272 | |
79cbab38 | 273 | %package -n nagios-plugin-check_dig |
b4f719a1 | 274 | Summary: Nagios plugin to check DNS servers with dig |
c43d265d | 275 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania DNS-u przy użyciu programu dig |
b4f719a1 | 276 | Group: Networking |
b4f719a1 | 277 | Requires: bind-utils |
e88a9fb6 | 278 | Requires: nagios-core |
cedf62c8 ER |
279 | Provides: nagios-plugins-dig = %{version}-%{release} |
280 | Obsoletes: nagios-plugins-dig | |
b4f719a1 | 281 | |
79cbab38 | 282 | %description -n nagios-plugin-check_dig |
b4f719a1 ER |
283 | Test the DNS service on the specified host using dig. |
284 | ||
d5ac5ccb JR |
285 | %description -n nagios-plugin-check_dig -l pl.UTF-8 |
286 | Ta wtyczka sprawdza usługę DNS na podanym hoście przy użyciu programu | |
46905887 JB |
287 | dig. |
288 | ||
b4f719a1 ER |
289 | %package ssh |
290 | Summary: Nagios plugins to check remote services via SSH | |
c43d265d | 291 | Summary(pl.UTF-8): Wtyczki Nagiosa do sprawdzania zdalnych usług po SSH |
b4f719a1 ER |
292 | Group: Networking |
293 | Requires: nagios-core | |
294 | Requires: openssh-clients | |
295 | ||
296 | %description ssh | |
297 | This plugin uses SSH to execute commands on a remote host. | |
298 | ||
d5ac5ccb JR |
299 | %description ssh -l pl.UTF-8 |
300 | Ta wtyczka używa SSH do wykonywania poleceń na zdalnym hoście. | |
46905887 | 301 | |
79cbab38 | 302 | %package -n nagios-plugin-check_load |
b4f719a1 | 303 | Summary: Nagios plugin to check uptime using procps |
c43d265d | 304 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania uptime'u przy użyciu procps |
b4f719a1 ER |
305 | Group: Networking |
306 | Requires: nagios-core | |
307 | Requires: procps | |
cedf62c8 ER |
308 | Provides: nagios-plugins-procps = %{version}-%{release} |
309 | Obsoletes: nagios-plugins-procps | |
b4f719a1 | 310 | |
79cbab38 | 311 | %description -n nagios-plugin-check_load |
b4f719a1 ER |
312 | Nagios plugin to check uptime using procps. |
313 | ||
d5ac5ccb JR |
314 | %description -n nagios-plugin-check_load -l pl.UTF-8 |
315 | Wtyczka Nagiosa do sprawdzania uptime'u przy użyciu procps. | |
46905887 | 316 | |
79cbab38 | 317 | %package -n nagios-plugin-check_fping |
b4f719a1 | 318 | Summary: Nagios plugin to check host up state with fping |
c43d265d | 319 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania działania hosta przy użyciu programu fping |
b4f719a1 | 320 | Group: Networking |
79cbab38 | 321 | Requires: fping |
cedf62c8 ER |
322 | Requires: nagios-core |
323 | Provides: nagios-plugins-fping = %{version}-%{release} | |
324 | Obsoletes: nagios-plugins-fping | |
b4f719a1 | 325 | |
9dcd711c | 326 | %description -n nagios-plugin-check_fping |
b4f719a1 ER |
327 | This plugin will use the /bin/fping command to ping the specified host |
328 | for a fast check if the host is alive. | |
329 | ||
d5ac5ccb JR |
330 | %description -n nagios-plugin-check_fping -l pl.UTF-8 |
331 | Ta wtyczka używa polecenia /bin/fping do szybkiego sprawdzenia, czy | |
332 | dany host działa. | |
46905887 | 333 | |
9dcd711c | 334 | %package -n nagios-plugin-check_ping |
79cbab38 | 335 | Summary: Nagios plugin to check host up state with ping |
c43d265d | 336 | Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania działania hosta przy użyciu programu ping |
79cbab38 | 337 | Group: Networking |
c8d0dd75 | 338 | Requires: iputils-ping >= 1:s20070202-1 |
cedf62c8 | 339 | Requires: nagios-core |
79cbab38 | 340 | |
9dcd711c | 341 | %description -n nagios-plugin-check_ping |
cedf62c8 ER |
342 | This plugin will use the /bin/ping command to ping the specified host |
343 | if the host is alive. | |
79cbab38 | 344 | |
d5ac5ccb JR |
345 | %description -n nagios-plugin-check_ping -l pl.UTF-8 |
346 | Ta wtyczka używa polecenia /bin/ping do sprawdzenia, czy dany host | |
347 | działa. | |
38dca1fa | 348 | |
3294b1a1 ER |
349 | %package perl |
350 | Summary: Nagios plugins written in Perl | |
c43d265d | 351 | Summary(pl.UTF-8): Wtyczki Nagiosa napisane w Perlu |
3294b1a1 ER |
352 | Group: Networking |
353 | # for utils.pm | |
d54d11c9 | 354 | Requires: %{name}-libs = %{version}-%{release} |
4cce8111 ER |
355 | # for perl(Exporter) |
356 | Requires: perl-base | |
3294b1a1 ER |
357 | |
358 | %description perl | |
359 | This package contains Nagios plugins written in Perl. | |
360 | ||
d5ac5ccb | 361 | %description perl -l pl.UTF-8 |
63158106 JB |
362 | Ten pakiet zawiera wtyczki Nagiosa napisane w Perlu. |
363 | ||
66e15cdf ER |
364 | # nsclient not packaged in PLD |
365 | #%package nsclient | |
7b53302e | 366 | #Summary: Nagios plugin to check NT server with NSClient |
d5ac5ccb | 367 | #Summary(pl): Wtyczka Nagiosa do sprawdzania serwera NT przy użyciu NSClienta |
66e15cdf | 368 | #Group: Networking |
d54d11c9 | 369 | #Requires: %{name}-libs = %{version}-%{release} |
66e15cdf ER |
370 | #Requires: nsclient |
371 | # | |
372 | #%description nsclient | |
373 | #Nagios plugin to check NT server with NSClient. | |
7b53302e JB |
374 | # |
375 | #%description nsclient -l pl | |
d5ac5ccb | 376 | #Wtyczka Nagiosa do sprawdzania serwera NT przy użyciu NSClienta. |
66e15cdf ER |
377 | |
378 | # requisite not packaged in PLD | |
379 | #%package nwstat | |
380 | #Summary: Nagios plugin nwstat | |
7b53302e | 381 | #Summary(pl): Wtyczka nwstat do Nagiosa |
66e15cdf | 382 | #Group: Networking |
d54d11c9 | 383 | #Requires: %{name}-libs = %{version}-%{release} |
66e15cdf ER |
384 | #Requires: mrtgext |
385 | # | |
386 | #%description nsclient | |
387 | #Nagios plugin using MRTGEXT module | |
7b53302e JB |
388 | #(http://forge.novell.com/modules/xfmod/project/?mrtgext). |
389 | # | |
390 | #%description nsclient -l pl | |
d5ac5ccb | 391 | #Wtyczka nagiosa używająca modułu MRTGEXT |
7b53302e | 392 | #(http://forge.novell.com/modules/xfmod/project/?mrtgext). |
66e15cdf | 393 | |
e94738d5 ER |
394 | %package contrib |
395 | Summary: Contributed nagios plugins | |
c43d265d | 396 | Summary(pl.UTF-8): Wtyczki przekazane do projektu Nagios |
e94738d5 ER |
397 | Group: Networking |
398 | # for utils.pm, utils.sh | |
d54d11c9 | 399 | Requires: %{name}-libs = %{version}-%{release} |
e94738d5 | 400 | # check_apache |
e94738d5 | 401 | Requires: perl-URI |
e88a9fb6 | 402 | Requires: perl-libwww |
e94738d5 ER |
403 | # check_apc_ups.pl |
404 | Requires: net-snmp-utils | |
405 | # check_arping.pl | |
16274cc2 | 406 | Requires: perl-Net-Arping |
e94738d5 | 407 | # check_bgpstate.pl |
e94738d5 | 408 | Requires: perl-Net-SNMP |
e88a9fb6 | 409 | Requires: whois |
e94738d5 ER |
410 | # check_traceroute.pl |
411 | Requires: traceroute | |
412 | # check_traceroute-pure_perl.pl | |
413 | Requires: perl-Net-Traceroute | |
e94738d5 ER |
414 | # check_temp_fsc |
415 | Requires: perl-SNMP_Session | |
416 | # check_smart.pl | |
417 | Requires: smartmontools | |
418 | # check_smb.sh | |
419 | Requires: samba | |
420 | # check_adptraid.sh | |
421 | #Requires: dptutil | |
81d5d307 | 422 | # unfinished... more deps are actually needed. |
e94738d5 ER |
423 | |
424 | %description contrib | |
81d5d307 ER |
425 | Contributed nagios plugins. Some of them work, some do not. Use at |
426 | your own risk. | |
e94738d5 | 427 | |
d5ac5ccb JR |
428 | %description contrib -l pl.UTF-8 |
429 | Wtyczki przekazane do projektu Nagios. Część z nich działa, część nie. | |
46905887 | 430 | |
061f9822 | 431 | %prep |
9050d80b | 432 | %setup -q %{?_snap:-n %{name}-HEAD-%{_snap}} |
e94738d5 | 433 | %patch0 -p1 |
11f068f7 | 434 | %patch1 -p1 |
e94738d5 | 435 | %patch3 -p1 |
f3a9ec1e | 436 | %patch4 -p1 |
7bb31d2c | 437 | %patch5 -p1 |
e6077bc8 | 438 | %patch6 -p1 |
e81e303b | 439 | %patch7 -p1 |
6d9813a1 | 440 | |
e94738d5 ER |
441 | # bring contribs into shape... |
442 | cd contrib | |
443 | mv check_compaq_insight.{pl,msg} | |
444 | sed -ne '/--- cut ---/,/--- cut ---/{/--- cut ---/!p}' < \ | |
445 | check_compaq_insight.msg > check_compaq_insight.pl | |
446 | ||
447 | sed -i -e '1s,#!.*/bin/perl,#!%{__perl},' \ | |
d2c45364 | 448 | check_{oracle_tbs,{snmp_{{disk,process}_monitor,printer},nagios_db,flexlm}.pl} |
e94738d5 | 449 | |
0c3e72f0 ER |
450 | sed -i -e '1s,#!.*/bin/env,#!%{__python},' \ |
451 | check_pcpmetric.py | |
452 | ||
453 | sed -i -e '1s,#!.*/bin/bash,#!/bin/sh,' \ | |
454 | check_smb.sh | |
455 | ||
e94738d5 | 456 | sed -i -e " |
f1326282 ER |
457 | s,use lib '.*/nagios/libexec/',use lib '%{_pluginlibdir}', |
458 | s,require '/usr/libexec/nagios/plugins,require '%{_pluginlibdir}, | |
459 | s,use lib utils.pm,use lib '%{_pluginlibdir}', # that's there really a typo | |
e94738d5 ER |
460 | " *.pl |
461 | ||
462 | mv check_appletalk.{pl,orig} | |
463 | sed -ne '/---/!p;/---/q' < check_appletalk.orig > check_appletalk.pl | |
464 | ||
465 | chmod a+x check_*.{pl,sh,py} | |
466 | chmod a+x check_{fan_{cpq,fsc}_present,frontpage,oracle_tbs,pfstate,temp_{cpq,fsc}} | |
467 | ||
ed6320d7 ER |
468 | # exists in main |
469 | rm check_{breeze,wave}.pl | |
061f9822 TO |
470 | |
471 | %build | |
e94738d5 | 472 | %{__gettextize} |
8a673959 | 473 | %{__aclocal} -I m4 -I gl/m4 |
061f9822 TO |
474 | %{__autoconf} |
475 | %{__autoheader} | |
476 | %{__automake} | |
714deaca | 477 | |
7b53302e | 478 | %configure \ |
11ba1eec | 479 | --libexecdir=%{_pluginarchdir} \ |
714deaca | 480 | --with-cgiurl=/nagios/cgi-bin \ |
dced79cc ER |
481 | --with-mysql=/usr \ |
482 | --with-pgsql=/usr \ | |
483 | --with-openssl=/usr \ | |
e94738d5 ER |
484 | --with-ping-command='/bin/ping -n -U -w %%d -c %%d %%s' \ |
485 | --with-ping6-command='/bin/ping6 -n -U -w %%d -c %%d %%s' \ | |
486 | --with-ps-command="/bin/ps axwo 'stat uid ppid vsz rss pcpu comm args'" \ | |
487 | --with-ps-format="%%s %%d %%d %%d %%d %%f %%s %%n" \ | |
488 | --with-ps-cols=8 \ | |
489 | --with-ps-varlist="procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos" \ | |
490 | --with-proc-meminfo=/proc/meminfo \ | |
ed6320d7 | 491 | --with-proc-loadavg=/proc/loadavg \ |
aa31c58d | 492 | --with-nslookup-command="/usr/bin/nslookup -sil" \ |
e94738d5 ER |
493 | --with-uptime-command=/usr/bin/uptime \ |
494 | --with-rpcinfo-command=/usr/sbin/rpcinfo \ | |
495 | --with-ntpdate-command=/usr/sbin/ntpdate \ | |
496 | --with-smbclient-command=/usr/bin/smbclient \ | |
497 | --with-dig-command=/usr/bin/dig \ | |
498 | --with-fping-command=/usr/sbin/fping \ | |
499 | --with-qstat-command=/usr/bin/qstat \ | |
500 | --with-ssh-command=/usr/bin/ssh \ | |
501 | --with-snmpget-command=/usr/bin/snmpget \ | |
d2c45364 | 502 | --with-snmpgetnext-command=/usr/bin/snmpgetnext \ |
80544696 | 503 | --with-df-command='/bin/df -P' \ |
20b088a6 | 504 | --with-mailq=/usr/bin/mailq |
714deaca | 505 | |
061f9822 TO |
506 | %{__make} |
507 | ||
e94738d5 ER |
508 | |
509 | # contrib. mostly useless. but you'll never know | |
510 | cd contrib | |
511 | ||
e94738d5 ER |
512 | %{__cc} %{rpmcflags} check_cluster2.c -o check_cluster2 |
513 | ||
20b088a6 | 514 | %{__cc} %{rpmcflags} -I../plugins -I.. -I../gl -I../lib -c check_rbl.c |
515 | %{__cc} %{rpmcflags} check_rbl.o -o check_rbl ../plugins/popen.o ../plugins/utils.o ../plugins/netutils.o ../lib/utils_base.o | |
e94738d5 ER |
516 | |
517 | %{__cc} %{rpmcflags} check_timeout.c -o check_timeout | |
518 | ||
20b088a6 | 519 | %{__cc} %{rpmcflags} -I../plugins -I.. -I../gl -I../lib -c check_uptime.c |
520 | %{__cc} %{rpmcflags} check_uptime.o -o check_uptime ../plugins/popen.o ../plugins/utils.o ../lib/utils_base.o | |
e94738d5 | 521 | |
061f9822 TO |
522 | %install |
523 | rm -rf $RPM_BUILD_ROOT | |
524 | ||
cb162c98 JB |
525 | %{__make} install \ |
526 | DESTDIR=$RPM_BUILD_ROOT | |
061f9822 | 527 | |
ed6320d7 ER |
528 | %{__make} install-root -C plugins-root \ |
529 | DESTDIR=$RPM_BUILD_ROOT | |
530 | ||
e94738d5 ER |
531 | %find_lang %{name} |
532 | ||
533 | cd contrib | |
534 | # all files with exec permissions are plugins. | |
11ba1eec | 535 | find -name 'check_*' -type f -perm +1 | xargs -ri install {} $RPM_BUILD_ROOT%{_pluginarchdir} |
e94738d5 | 536 | |
9ebf5186 ER |
537 | %if "%{_pluginarchdir}" != "%{_pluginlibdir}" |
538 | install -d $RPM_BUILD_ROOT%{_pluginlibdir} | |
539 | mv $(find $RPM_BUILD_ROOT%{_pluginarchdir} -type f | xargs file | awk -F: '!/ELF/{print $1}') $RPM_BUILD_ROOT%{_pluginlibdir} | |
540 | %endif | |
541 | ||
d54d11c9 | 542 | install %{SOURCE1} $RPM_BUILD_ROOT%{_pluginlibdir}/utils.php |
0b8ec337 | 543 | chmod a-x $RPM_BUILD_ROOT%{_pluginlibdir}/utils.sh |
d54d11c9 | 544 | |
b8b3652a ER |
545 | rm -f $RPM_BUILD_ROOT%{_libdir}/libnagiosplug.{la,a} |
546 | ||
061f9822 TO |
547 | %clean |
548 | rm -rf $RPM_BUILD_ROOT | |
549 | ||
b8b3652a ER |
550 | %post libs -p /sbin/ldconfig |
551 | %postun libs -p /sbin/ldconfig | |
552 | ||
5b0b82a7 | 553 | %triggerun -- %{name} <= 1.4-0.34 |
d98a885f | 554 | %banner -e %{name} <<EOF |
b4f719a1 ER |
555 | Several Nagios plugins have been separated to multiple packages to cut |
556 | down unneccessary deps on main package. | |
557 | ||
d98a885f | 558 | Please install %{name}-PACKAGE if you need these plugins. |
b4f719a1 | 559 | To revert to previous state just run: |
5b0b82a7 | 560 | poldek -u nagios-plugins-{snmp,samba,sensors,mysql,pgsql,radius,qstat,ldap,ntp,dns,ssh,procps,fping} |
d98a885f ER |
561 | |
562 | EOF | |
563 | ||
e94738d5 | 564 | %files -f %{name}.lang |
061f9822 | 565 | %defattr(644,root,root,755) |
20b088a6 | 566 | %doc ACKNOWLEDGEMENTS AUTHORS BUGS CODING ChangeLog |
e94738d5 | 567 | %doc FAQ LEGAL NEWS README REQUIREMENTS SUPPORT THANKS |
714deaca | 568 | |
e94738d5 | 569 | %defattr(755,root,root,755) |
714deaca | 570 | # plugins |
11ba1eec ER |
571 | %{_pluginarchdir}/check_apt |
572 | %{_pluginarchdir}/check_cluster | |
573 | %{_pluginarchdir}/check_cluster2 | |
574 | %{_pluginarchdir}/check_disk | |
575 | %{_pluginarchdir}/check_dummy | |
576 | %{_pluginarchdir}/check_http | |
a71518d2 | 577 | %{_pluginarchdir}/check_ide_smart |
11ba1eec ER |
578 | %{_pluginarchdir}/check_mrtg |
579 | %{_pluginarchdir}/check_mrtgtraf | |
580 | %{_pluginarchdir}/check_nagios | |
e94738d5 | 581 | # req: over-cr >= 0.99.53 http://www.molitor.org/overcr |
11ba1eec ER |
582 | %{_pluginarchdir}/check_overcr |
583 | %{_pluginarchdir}/check_procs | |
584 | %{_pluginarchdir}/check_real | |
585 | %{_pluginarchdir}/check_smtp | |
586 | %{_pluginarchdir}/check_ssh | |
587 | %{_pluginarchdir}/check_time | |
588 | %{_pluginarchdir}/check_ups | |
589 | %{_pluginarchdir}/check_users | |
590 | %{_pluginarchdir}/check_swap | |
591 | %{_pluginlibdir}/check_log | |
592 | ||
593 | # check_tcp and symlinks | |
594 | %{_pluginarchdir}/check_tcp | |
595 | %{_pluginarchdir}/check_clamd | |
596 | %{_pluginarchdir}/check_ftp | |
597 | %{_pluginarchdir}/check_imap | |
598 | %{_pluginarchdir}/check_jabber | |
11ba1eec ER |
599 | %{_pluginarchdir}/check_nntp |
600 | %{_pluginarchdir}/check_nntps | |
601 | %{_pluginarchdir}/check_pop | |
602 | %{_pluginarchdir}/check_simap | |
603 | %{_pluginarchdir}/check_spop | |
604 | %{_pluginarchdir}/check_ssmtp | |
605 | %{_pluginarchdir}/check_udp | |
e94738d5 | 606 | |
ed6320d7 | 607 | # these plugins need suid bit to operate |
11ba1eec ER |
608 | %{_pluginarchdir}/check_dhcp |
609 | %{_pluginarchdir}/check_icmp | |
ed6320d7 | 610 | |
714deaca ER |
611 | # Cannot determine ORACLE_HOME for sid |
612 | # probably needs some external programs. can't test | |
11ba1eec | 613 | %{_pluginlibdir}/check_oracle |
714deaca | 614 | |
d54d11c9 | 615 | %files libs |
59598b18 | 616 | %defattr(644,root,root,755) |
b8b3652a | 617 | %attr(755,root,root) %{_libdir}/libnagiosplug.so.0.0.0 |
59598b18 ER |
618 | %attr(755,root,root) %{_pluginarchdir}/negate |
619 | %attr(755,root,root) %{_pluginarchdir}/urlize | |
d54d11c9 ER |
620 | %{_pluginlibdir}/utils.pm |
621 | %{_pluginlibdir}/utils.php | |
622 | %{_pluginlibdir}/utils.sh | |
623 | ||
3294b1a1 ER |
624 | %files perl |
625 | %defattr(755,root,root,755) | |
11ba1eec ER |
626 | %{_pluginlibdir}/check_file_age |
627 | %{_pluginlibdir}/check_ircd | |
628 | %{_pluginlibdir}/check_mailq | |
629 | %{_pluginlibdir}/check_rpc | |
3294b1a1 ER |
630 | |
631 | # requires license.dat | |
11ba1eec | 632 | %{_pluginlibdir}/check_flexlm |
3294b1a1 | 633 | |
714deaca ER |
634 | # Not to be confused with nagios-snmp-plugins |
635 | %files snmp | |
636 | %defattr(755,root,root,755) | |
11ba1eec ER |
637 | %{_pluginarchdir}/check_snmp |
638 | %{_pluginarchdir}/check_hpjd | |
639 | %{_pluginlibdir}/check_ifoperstatus | |
640 | %{_pluginlibdir}/check_ifstatus | |
641 | %{_pluginlibdir}/check_wave | |
642 | %{_pluginlibdir}/check_breeze | |
dcd5579b | 643 | |
714deaca ER |
644 | %files samba |
645 | %defattr(755,root,root,755) | |
11ba1eec | 646 | %{_pluginlibdir}/check_disk_smb |
714deaca | 647 | |
79cbab38 | 648 | %files -n nagios-plugin-check_sensors |
714deaca | 649 | %defattr(755,root,root,755) |
11ba1eec | 650 | %{_pluginlibdir}/check_sensors |
714deaca ER |
651 | |
652 | %files mysql | |
653 | %defattr(755,root,root,755) | |
11ba1eec ER |
654 | %{_pluginarchdir}/check_mysql |
655 | %{_pluginarchdir}/check_mysql_query | |
714deaca | 656 | |
79cbab38 | 657 | %files -n nagios-plugin-check_pgsql |
714deaca | 658 | %defattr(755,root,root,755) |
11ba1eec | 659 | %{_pluginarchdir}/check_pgsql |
714deaca | 660 | |
79cbab38 | 661 | %files -n nagios-plugin-check_radius |
714deaca | 662 | %defattr(755,root,root,755) |
11ba1eec | 663 | %{_pluginarchdir}/check_radius |
714deaca | 664 | |
79cbab38 | 665 | %files -n nagios-plugin-check_game |
714deaca | 666 | %defattr(755,root,root,755) |
11ba1eec | 667 | %{_pluginarchdir}/check_game |
66e15cdf | 668 | |
79cbab38 | 669 | %files -n nagios-plugin-check_ldap |
66e15cdf | 670 | %defattr(755,root,root,755) |
11ba1eec | 671 | %{_pluginarchdir}/check_ldap |
46b71a5d | 672 | %{_pluginarchdir}/check_ldaps |
66e15cdf | 673 | |
79cbab38 | 674 | %files -n nagios-plugin-check_ntp |
b4f719a1 | 675 | %defattr(755,root,root,755) |
11ba1eec | 676 | %{_pluginarchdir}/check_ntp |
59f47859 ER |
677 | %{_pluginarchdir}/check_ntp_peer |
678 | %{_pluginarchdir}/check_ntp_time | |
b4f719a1 | 679 | |
79cbab38 | 680 | %files -n nagios-plugin-check_dns |
b4f719a1 | 681 | %defattr(755,root,root,755) |
11ba1eec | 682 | %{_pluginarchdir}/check_dns |
b4f719a1 | 683 | |
79cbab38 | 684 | %files -n nagios-plugin-check_dig |
b4f719a1 | 685 | %defattr(755,root,root,755) |
11ba1eec | 686 | %{_pluginarchdir}/check_dig |
b4f719a1 ER |
687 | |
688 | %files ssh | |
689 | %defattr(755,root,root,755) | |
11ba1eec | 690 | %{_pluginarchdir}/check_by_ssh |
b4f719a1 | 691 | |
79cbab38 | 692 | %files -n nagios-plugin-check_load |
b4f719a1 | 693 | %defattr(755,root,root,755) |
11ba1eec | 694 | %{_pluginarchdir}/check_load |
b4f719a1 | 695 | |
79cbab38 ER |
696 | %files -n nagios-plugin-check_ping |
697 | %defattr(755,root,root,755) | |
11ba1eec | 698 | %attr(2755,root,adm) %{_pluginarchdir}/check_ping |
79cbab38 ER |
699 | |
700 | %files -n nagios-plugin-check_fping | |
b4f719a1 | 701 | %defattr(755,root,root,755) |
11ba1eec | 702 | %attr(2755,root,adm) %{_pluginarchdir}/check_fping |
b4f719a1 | 703 | |
e94738d5 ER |
704 | %files contrib |
705 | %defattr(755,root,root,755) | |
11ba1eec ER |
706 | %{_pluginarchdir}/check_nt |
707 | %{_pluginarchdir}/check_nwstat | |
708 | %{_pluginarchdir}/check_rbl | |
709 | %{_pluginarchdir}/check_timeout | |
710 | %{_pluginarchdir}/check_uptime | |
711 | ||
712 | %{_pluginlibdir}/check_adptraid.sh | |
713 | %{_pluginlibdir}/check_apache.pl | |
714 | %{_pluginlibdir}/check_apc_ups.pl | |
715 | %{_pluginlibdir}/check_appletalk.pl | |
716 | %{_pluginlibdir}/check_arping.pl | |
717 | %{_pluginlibdir}/check_asterisk.pl | |
718 | %{_pluginlibdir}/check_axis.sh | |
719 | %{_pluginlibdir}/check_backup.pl | |
720 | %{_pluginlibdir}/check_bgpstate.pl | |
721 | %{_pluginlibdir}/check_compaq_insight.pl | |
722 | %{_pluginlibdir}/check_digitemp.pl | |
723 | %{_pluginlibdir}/check_dlswcircuit.pl | |
724 | %{_pluginlibdir}/check_dns_random.pl | |
725 | %{_pluginlibdir}/check_email_loop.pl | |
726 | %{_pluginlibdir}/check_fan_cpq_present | |
727 | %{_pluginlibdir}/check_fan_fsc_present | |
728 | %{_pluginlibdir}/check_flexlm.pl | |
729 | %{_pluginlibdir}/check_frontpage | |
730 | %{_pluginlibdir}/check_hprsc.pl | |
731 | %{_pluginlibdir}/check_hw.sh | |
732 | %{_pluginlibdir}/check_ica_master_browser.pl | |
733 | %{_pluginlibdir}/check_ica_metaframe_pub_apps.pl | |
734 | %{_pluginlibdir}/check_ica_program_neigbourhood.pl | |
735 | %{_pluginlibdir}/check_inodes-freebsd.pl | |
736 | %{_pluginlibdir}/check_inodes.pl | |
737 | %{_pluginlibdir}/check_javaproc.pl | |
738 | %{_pluginlibdir}/check_joy.sh | |
739 | %{_pluginlibdir}/check_linux_raid.pl | |
740 | %{_pluginlibdir}/check_lmmon.pl | |
741 | %{_pluginlibdir}/check_log2.pl | |
742 | %{_pluginlibdir}/check_lotus.pl | |
743 | %{_pluginlibdir}/check_maxchannels.pl | |
744 | %{_pluginlibdir}/check_maxwanstate.pl | |
745 | %{_pluginlibdir}/check_mem.pl | |
746 | %{_pluginlibdir}/check_ms_spooler.pl | |
747 | %{_pluginlibdir}/check_mssql.sh | |
748 | %{_pluginlibdir}/check_nagios.pl | |
749 | %{_pluginlibdir}/check_nagios_db.pl | |
750 | %{_pluginlibdir}/check_nagios_db_pg.pl | |
751 | %{_pluginlibdir}/check_netapp.pl | |
752 | %{_pluginlibdir}/check_nmap.py | |
753 | %{_pluginlibdir}/check_ora_table_space.pl | |
754 | %{_pluginlibdir}/check_oracle_instance.pl | |
755 | %{_pluginlibdir}/check_oracle_tbs | |
756 | %{_pluginlibdir}/check_pcpmetric.py | |
757 | %{_pluginlibdir}/check_pfstate | |
758 | %{_pluginlibdir}/check_qmailq.pl | |
759 | %{_pluginlibdir}/check_remote_nagios_status.pl | |
760 | %{_pluginlibdir}/check_rrd_data.pl | |
761 | %{_pluginlibdir}/check_sap.sh | |
762 | %{_pluginlibdir}/check_smart.pl | |
763 | %{_pluginlibdir}/check_smb.sh | |
764 | %{_pluginlibdir}/check_snmp_disk_monitor.pl | |
765 | %{_pluginlibdir}/check_snmp_printer.pl | |
766 | %{_pluginlibdir}/check_snmp_process_monitor.pl | |
767 | %{_pluginlibdir}/check_snmp_procs.pl | |
768 | %{_pluginlibdir}/check_sockets.pl | |
769 | %{_pluginlibdir}/check_temp_cpq | |
770 | %{_pluginlibdir}/check_temp_fsc | |
771 | %{_pluginlibdir}/check_traceroute-pure_perl.pl | |
772 | %{_pluginlibdir}/check_traceroute.pl | |
773 | %{_pluginlibdir}/check_vcs.pl | |
774 | %{_pluginlibdir}/check_wins.pl |