File monitoring-plugins-obs.spec of Package monitoring-plugins-obs
#
# spec file for package monitoring-plugins-obs
#
# Copyright (c) 2012-2014 Gregor Dschung
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: monitoring-plugins-obs
Summary: Nagios plugin for checking Open Build Service (obs)
License: GPL-3.0+
Group: System/Monitoring
Version: 1.1
Release: 100
Url: https://github.com/chkpnt/nagios-plugins-obs
Source0: https://github.com/chkpnt/nagios-plugins-obs/archive/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM apparmor_abstractions_ruby.patch [lp#1074481] dschung@cs.uni-kl.de -- AppArmor's abstraction file 'ruby' doesn't work for newer ruby installations
Patch0: apparmor_abstractions_ruby.patch
Requires: ruby
Requires: rubygems
Requires: rubygem-nokogiri
Requires: rubygem-highline
BuildArch: noarch
BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-obs = %{version}-%{release}
Obsoletes: nagios-plugins-obs < %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This plugin checks Open Build Service instances.
Works through proxies and self-signed certificates.
Can be used to:
- check if the special schedulers (dispatcher, publisher, signer, warden) are running
- check if schedulers for specific architectures are running
- get performance data about for workers in general, idle workers, and building workers (per host architecture)
- get performance data about packages in general, waiting packages, and blocked packages (per architecture)
- generate warnings or criticals by using the performance data and thresholds (support for ranges as used by nagios plugins)
%prep
%setup -q -n nagios-plugins-obs-%{version}
%patch0 -p1
%build
%install
install -D -m755 check_obs %{buildroot}/%{nagios_plugindir}/check_obs
install -D -m644 usr.lib.nagios.plugins.check_obs %{buildroot}/%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_obs
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING README.md
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{_sysconfdir}/apparmor.d
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_obs
%{nagios_plugindir}/check_obs
%changelog