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