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