1 %global upstream_name monitoring
-plugins
3 %global plugindir
%{_libdir}/monitoring
/plugins
4 %global commit
72dd0a308130b9778828d143d1b9d9906218d6ac
5 %global shortcommit %
(c
=%{commit}; echo ${c:0:7})
8 %define _unpackaged_files_terminate_build
0
10 Name: %{upstream_name}
12 Summary: Monitoring Plugins from the Monitoring Plugins Team
15 URL: https
://www.monitoring
-plugins.org
16 ## When using checkouts from git, use the following
18 Release: git.
%{?shortcommit}.1%{?dist}
19 Source0: https
://github.com
/monitoring
-plugins
/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
22 Source0: https
://www.monitoring
-plugins.org
/download
/monitoring
-plugins
-%{version}.tar.gz
24 Conflicts: nagios
-plugins
29 ##### BUILD REQUIREMENTS #####
30 # Needed for the git code
32 BuildRequires
: automake
33 BuildRequires
: autoconf
34 BuildRequires
: gettext
-devel
36 ### General build requirements
39 BuildRequires
: automake
41 ### Check Plugin specific build requirements
43 BuildRequires
: openssh
-clients
46 BuildRequires
: libcurl
-devel
>= 7.15.2
47 BuildRequires
: openssl
-devel
48 BuildRequires
: uriparser
-devel
>= 0.7.5
52 BuildRequires
: libdbi
-devel
56 BuildRequires
: bind-utils
60 BuildRequires
: samba
-client
72 BuildRequires
: net
-snmp
-utils
74 # check_ldap check_ldaps
75 BuildRequires
: openldap
-devel
78 BuildRequires
: procps
-ng
80 # check_mysql check_mysql_query
82 BuildRequires
: mariadb
-devel
86 BuildRequires
: postgresql
-devel
89 BuildRequires
: radcli
-devel
92 Common files
for Monitoring Plugins
100 %doc ACKNOWLEDGEMENTS
113 ##### ACTUAL BUILD #####
116 %autosetup -n
%{upstream_name}-%{commit}
118 %autosetup -n
%{upstream_name}-%{version}
127 --prefix
=%{_prefix} \
128 --libexecdir
=%{plugindir} \
129 --with
-openssl
=/usr \
130 --with
-ping
-command="
/usr
/bin
/ping
-4 -n
-U
-w
%d -c
%d %s" \
131 --with
-ping6
-command="
/usr
/bin
/ping
-6 -n
-U
-w
%d -c
%d %s"
140 %{__make} install-root DESTDIR=%{buildroot} INSTALL="%{__install} -p"
145 ##### SUB PACKAGES #####
148 Summary: Monitoring Plugins
- All Check Plugins
150 Requires: %{name}-apt
151 Requires: %{name}-breeze
152 Requires: %{name}-by_ssh
153 Requires: %{name}-cluster
154 Requires: %{name}-curl
156 Requires: %{name}-dbi
158 Requires: %{name}-dhcp
159 Requires: %{name}-dig
160 Requires: %{name}-disk
162 Requires: %{name}-disk_smb
164 Requires: %{name}-dns
165 Requires: %{name}-dummy
166 Requires: %{name}-file_age
167 Requires: %{name}-flexlm
168 Requires: %{name}-fping
170 Requires: %{name}-game
172 Requires: %{name}-hpjd
173 Requires: %{name}-http
174 Requires: %{name}-icmp
175 Requires: %{name}-ide_smart
176 Requires: %{name}-ifoperstatus
177 Requires: %{name}-ifstatus
178 Requires: %{name}-ircd
179 Requires: %{name}-ldap
180 Requires: %{name}-load
181 Requires: %{name}-log
182 Requires: %{name}-mailq
183 Requires: %{name}-mrtg
184 Requires: %{name}-mrtgtraf
186 Requires: %{name}-mysql
187 Requires: %{name}-mysql_query
189 Requires: %{name}-nagios
191 Requires: %{name}-ntp
192 Requires: %{name}-ntp_peer
193 Requires: %{name}-ntp_time
194 Requires: %{name}-nwstat
195 Requires: %{name}-oracle
196 Requires: %{name}-overcr
197 Requires: %{name}-pgsql
198 Requires: %{name}-ping
199 Requires: %{name}-procs
200 Requires: %{name}-radius
201 Requires: %{name}-real
202 Requires: %{name}-rpc
203 Requires: %{name}-sensors
204 Requires: %{name}-smtp
205 Requires: %{name}-snmp
206 Requires: %{name}-ssh
207 Requires: %{name}-swap
208 Requires: %{name}-tcp
209 Requires: %{name}-time
210 Requires: %{name}-ups
211 Requires: %{name}-uptime
212 Requires: %{name}-users
213 Requires: %{name}-wave
216 Meta package that requires all the check plugins of the Monitoring Plugins
224 Summary: Monitoring Plugins
- check_apt
225 Requires: %{name} = %{version}-%{release}
228 Provides check_apt of the Monitoring Plugins.
231 %{plugindir}/check_apt
237 Summary: Monitoring Plugins
- check_breeze
238 Requires: %{name} = %{version}-%{release}
241 Provides check_breeze of the Monitoring Plugins.
244 %{plugindir}/check_breeze
250 Summary: Monitoring Plugins
- check_by_ssh
251 Requires: %{name} = %{version}-%{release}
254 Provides check_by_ssh of the Monitoring Plugins.
257 %{plugindir}/check_by_ssh
263 Summary: Monitoring Plugins
- check_cluster
264 Requires: %{name} = %{version}-%{release}
267 Provides check_cluster of the Monitoring Plugins.
270 %{plugindir}/check_cluster
276 Summary: Monitoring Plugins
- check_curl
277 Requires: %{name} = %{version}-%{release}
280 Provides check_curl of the Monitoring Plugins.
283 %{plugindir}/check_curl
290 Summary: Monitoring Plugins
- check_dbi
291 Requires: %{name} = %{version}-%{release}
294 Provides check_dbi of the Monitoring Plugins.
297 %{plugindir}/check_dbi
304 Summary: Monitoring Plugins
- check_dhcp
305 Requires: %{name} = %{version}-%{release}
308 Provides check_dhcp of the Monitoring Plugins.
311 %{plugindir}/check_dhcp
317 Summary: Monitoring Plugins
- check_dig
318 Requires: %{name} = %{version}-%{release}
322 Provides check_dig of the Monitoring Plugins.
325 %{plugindir}/check_dig
331 Summary: Monitoring Plugins
- check_disk
332 Requires: %{name} = %{version}-%{release}
335 Provides check_disk of the Monitoring Plugins.
338 %{plugindir}/check_disk
345 Summary: Monitoring Plugins
- check_disk_smb
346 Requires: %{name} = %{version}-%{release}
347 Requires: samba
-client
349 %description disk_smb
350 Provides check_disk_smb of the Monitoring Plugins.
353 %{plugindir}/check_disk_smb
360 Summary: Monitoring Plugins
- check_dns
361 Requires: %{name} = %{version}-%{release}
365 Provides check_dns of the Monitoring Plugins.
368 %{plugindir}/check_dns
374 Summary: Monitoring Plugins
- check_dummy
375 Requires: %{name} = %{version}-%{release}
378 Provides check_dummy of the Monitoring Plugins.
381 %{plugindir}/check_dummy
387 Summary: Monitoring Plugins
- check_file_age
388 Requires: %{name} = %{version}-%{release}
390 %description file_age
391 Provides check_file_age of the Monitoring Plugins.
394 %{plugindir}/check_file_age
400 Summary: Monitoring Plugins
- check_flexlm
401 Requires: %{name} = %{version}-%{release}
404 Provides check_flexlm of the Monitoring Plugins.
407 %{plugindir}/check_flexlm
413 Summary: Monitoring Plugins
- check_fping
414 Requires: %{name} = %{version}-%{release}
418 Provides check_fping of the Monitoring Plugins.
421 %{plugindir}/check_fping
428 Summary: Monitoring Plugins
- check_fping
429 Requires: %{name} = %{version}-%{release}
433 Provides check_game of the Monitoring Plugins.
436 %{plugindir}/check_game
443 Summary: Monitoring Plugins
- check_hpjd
444 Requires: %{name} = %{version}-%{release}
447 Provides check_hpjd of the Monitoring Plugins.
450 %{plugindir}/check_hpjd
456 Summary: Monitoring Plugins
- check_http
457 Requires: %{name} = %{version}-%{release}
460 Provides check_http of the Monitoring Plugins.
463 %{plugindir}/check_http
469 Summary: Monitoring Plugins
- check_icmp
470 Requires: %{name} = %{version}-%{release}
473 Provides check_icmp of the Monitoring Plugins.
476 %{plugindir}/check_icmp
482 Summary: Monitoring Plugins
- check_ide_smart
483 Requires: %{name} = %{version}-%{release}
485 %description ide_smart
486 Provides check_ide_smart of the Monitoring Plugins.
489 %{plugindir}/check_ide_smart
494 %package ifoperstatus
495 Summary: Monitoring Plugins
- check_ifoperstatus
496 Requires: %{name} = %{version}-%{release}
497 Requires: perl
(Net
::SNMP
)
499 %description ifoperstatus
500 Provides check_ifoperstatus of the Monitoring Plugins.
503 %{plugindir}/check_ifoperstatus
509 Summary: Monitoring Plugins
- check_ifstatus
510 Requires: %{name} = %{version}-%{release}
512 %description ifstatus
513 Provides check_ifstatus of the Monitoring Plugins.
516 %{plugindir}/check_ifstatus
522 Summary: Monitoring Plugins
- check_ircd
523 Requires: %{name} = %{version}-%{release}
526 Provides check_ircd of the Monitoring Plugins.
529 %{plugindir}/check_ircd
535 Summary: Monitoring Plugins
- check_ldap
536 Requires: %{name} = %{version}-%{release}
539 Provides check_ldap of the Monitoring Plugins.
542 %{plugindir}/check_ldap
543 %{plugindir}/check_ldaps
549 Summary: Monitoring Plugins
- check_load
550 Requires: %{name} = %{version}-%{release}
554 Provides check_load of the Monitoring Plugins.
557 %{plugindir}/check_load
563 Summary: Monitoring Plugins
- check_log
564 Requires: %{name} = %{version}-%{release}
567 Provides check_log of the Monitoring Plugins.
570 %{plugindir}/check_log
576 Summary: Monitoring Plugins
- check_mailq
577 Requires: %{name} = %{version}-%{release}
580 Provides check_mailq of the Monitoring Plugins.
583 %{plugindir}/check_mailq
589 Summary: Monitoring Plugins
- check_mrtg
590 Requires: %{name} = %{version}-%{release}
593 Provides check_mrtg of the Monitoring Plugins.
596 %{plugindir}/check_mrtg
602 Summary: Monitoring Plugins
- check_mrtgtraf
603 Requires: %{name} = %{version}-%{release}
605 %description mrtgtraf
606 Provides check_mrtgtraf of the Monitoring Plugins.
609 %{plugindir}/check_mrtgtraf
616 Summary: Monitoring Plugins
- check_mysql
617 Requires: %{name} = %{version}-%{release}
620 Provides check_mysql of the Monitoring Plugins.
623 %{plugindir}/check_mysql
629 Summary: Monitoring Plugins
- check_mysql_query
630 Requires: %{name} = %{version}-%{release}
632 %description mysql_query
633 Provides check_mysql_query of the Monitoring Plugins.
636 %{plugindir}/check_mysql_query
643 Summary: Monitoring Plugins
- check_nagios
644 Requires: %{name} = %{version}-%{release}
647 Provides check_nagios of the Monitoring Plugins.
650 %{plugindir}/check_nagios
656 Summary: Monitoring Plugins
- check_nt
657 Requires: %{name} = %{version}-%{release}
660 Provides check_nt of the Monitoring Plugins.
663 %{plugindir}/check_nt
669 Summary: Monitoring Plugins
- check_ntp
670 Requires: %{name} = %{version}-%{release}
673 Provides check_ntp of the Monitoring Plugins.
676 %{plugindir}/check_ntp
682 Summary: Monitoring Plugins
- check_ntp_peer
683 Requires: %{name} = %{version}-%{release}
685 %description ntp_peer
686 Provides check_ntp_peer of the Monitoring Plugins.
689 %{plugindir}/check_ntp_peer
695 Summary: Monitoring Plugins
- check_ntp_time
696 Requires: %{name} = %{version}-%{release}
698 %description ntp_time
699 Provides check_ntp_time of the Monitoring Plugins.
702 %{plugindir}/check_ntp_time
708 Summary: Monitoring Plugins
- check_nwstat
709 Requires: %{name} = %{version}-%{release}
712 Provides check_nwstat of the Monitoring Plugins.
715 %{plugindir}/check_nwstat
721 Summary: Monitoring Plugins
- check_oracle
722 Requires: %{name} = %{version}-%{release}
725 Provides check_oracle of the Monitoring Plugins.
728 %{plugindir}/check_oracle
734 Summary: Monitoring Plugins
- check_overcr
735 Requires: %{name} = %{version}-%{release}
738 Provides check_overcr of the Monitoring Plugins.
741 %{plugindir}/check_overcr
747 Summary: Monitoring Plugins
- check_pgsql
748 Requires: %{name} = %{version}-%{release}
751 Provides check_pgsql of the Monitoring Plugins.
754 %{plugindir}/check_pgsql
760 Summary: Monitoring Plugins
- check_ping
761 Requires: %{name} = %{version}-%{release}
764 Provides check_ping of the Monitoring Plugins.
767 %{plugindir}/check_ping
773 Summary: Monitoring Plugins
- check_procs
774 Requires: %{name} = %{version}-%{release}
777 Provides check_procs of the Monitoring Plugins.
780 %{plugindir}/check_procs
786 Summary: Monitoring Plugins
- check_radius
787 Requires: %{name} = %{version}-%{release}
790 Provides check_radius of the Monitoring Plugins.
793 %{plugindir}/check_radius
799 Summary: Monitoring Plugins
- check_real
800 Requires: %{name} = %{version}-%{release}
803 Provides check_real of the Monitoring Plugins.
806 %{plugindir}/check_real
812 Summary: Monitoring Plugins
- check_rpc
813 Requires: %{name} = %{version}-%{release}
816 Provides check_rpc of the Monitoring Plugins.
819 %{plugindir}/check_rpc
825 Summary: Monitoring Plugins
- check_sensors
826 Requires: %{name} = %{version}-%{release}
830 Provides check_sensors of the Monitoring Plugins.
833 %{plugindir}/check_sensors
839 Summary: Monitoring Plugins
- check_smtp
840 Requires: %{name} = %{version}-%{release}
843 Provides check_smtp of the Monitoring Plugins.
846 %{plugindir}/check_smtp
852 Summary: Monitoring Plugins
- check_snmp
853 Requires: %{name} = %{version}-%{release}
857 Provides check_snmp of the Monitoring Plugins.
860 %{plugindir}/check_snmp
866 Summary: Monitoring Plugins
- check_ssh
867 Requires: %{name} = %{version}-%{release}
870 Provides check_ssh of the Monitoring Plugins.
873 %{plugindir}/check_ssh
879 Summary: Monitoring Plugins
- check_swap
880 Requires: %{name} = %{version}-%{release}
883 Provides check_swap of the Monitoring Plugins.
886 %{plugindir}/check_swap
892 Summary: Monitoring Plugins
- check_tcp
893 Requires: %{name} = %{version}-%{release}
896 Provides check_tcp of the Monitoring Plugins.
899 %{plugindir}/check_clamd
900 %{plugindir}/check_ftp
901 %{plugindir}/check_imap
902 %{plugindir}/check_jabber
903 %{plugindir}/check_nntp
904 %{plugindir}/check_nntps
905 %{plugindir}/check_pop
906 %{plugindir}/check_simap
907 %{plugindir}/check_spop
908 %{plugindir}/check_ssmtp
909 %{plugindir}/check_tcp
910 %{plugindir}/check_udp
916 Summary: Monitoring Plugins
- check_time
917 Requires: %{name} = %{version}-%{release}
920 Provides check_time of the Monitoring Plugins.
923 %{plugindir}/check_time
929 Summary: Monitoring Plugins
- check_ups
930 Requires: %{name} = %{version}-%{release}
933 Provides check_ups of the Monitoring Plugins.
936 %{plugindir}/check_ups
942 Summary: Monitoring Plugins
- check_uptime
943 Requires: %{name} = %{version}-%{release}
946 Provides check_uptime of the Monitoring Plugins.
949 %{plugindir}/check_uptime
955 Summary: Monitoring Plugins
- check_users
956 Requires: %{name} = %{version}-%{release}
959 Provides check_users of the Monitoring Plugins.
962 %{plugindir}/check_users
968 Summary: Monitoring Plugins
- check_wave
969 Requires: %{name} = %{version}-%{release}
972 Provides check_wave of the Monitoring Plugins.
975 %{plugindir}/check_wave