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