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