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