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