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