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