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