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