File monitoring-plugins-systemd_timer.spec of Package monitoring-plugins-systemd_timer
#
# spec file for package monitoring-plugins-systemd_timer
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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-systemd_timer
Summary: Report The Status Of A Systemd Timer And Service
Version: 1.0
Release: 1
Url: https://github.com/baderas/nagios-plugin-systemd-timer
License: GPL-3.0+
Group: System/Monitoring
Source0: check_systemd_timer.sh
Source1: LICENSE
Source2: README.md
BuildRequires: nagios-rpm-macros
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
check_systemd_timer reports the status of a systemd timer and service.
check_systemd_timer <service name> <timer name>
<time in seconds between runs that is not warning>
<time in seconds between runs thar is not critical>
%prep
%setup -q -T -c %{name}
install -m644 %{SOURCE0} %{SOURCE1} %{SOURCE2} .
%build
%install
install -D -m755 check_systemd_timer.sh %{buildroot}/%{nagios_plugindir}/check_systemd_timer
%files
%defattr(-,root,root)
%doc LICENSE README.md
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_systemd_timer
%changelog