mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-05 10:03:45 +01:00
41 lines
1003 B
RPMSpec
41 lines
1003 B
RPMSpec
%define debug_package %{nil}
|
|
%define plugin check_http_multi
|
|
|
|
Summary: A Nagios plugin to check multiple websites
|
|
Name: nagios-okplugin-%{plugin}
|
|
Version: 0.1.0
|
|
Release: 1%{?dist}
|
|
License: GPLv3+
|
|
Group: Applications/System
|
|
URL: https://github.com/opinkerfi/misc/tree/master/nagios-plugins/check_%{plugin}
|
|
Source0: https://github.com/opinkerfi/misc/tree/master/nagios-plugins/check_%{plugin}/releases/%{name}-%{version}.tar.gz
|
|
Requires: nagios-okconfig-nrpe >= 0.0.4
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Packager: Tomas Edwardsson <tommi@tommi.org>
|
|
BuildArch: noarch
|
|
|
|
|
|
%description
|
|
Checks multiple websites for latency and failures. You can specify how many
|
|
of them will fail to return warning or critical state.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
install -D -p -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.md
|
|
%{_libdir}/nagios/plugins/*
|
|
|
|
%changelog
|