48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
%global nagiospluginsdir %{_libdir}/nagios/plugins
|
|
%global debug_package %{nil}
|
|
|
|
Name: nagios-plugins-systemd
|
|
Version: 2.3.1
|
|
Release: 1%{dist}
|
|
Summary: Nagios Plugin - check_systemd
|
|
License: LGPL-2.1-only
|
|
URL: https://exchange.icinga.com/joseffriedrich/check_systemd
|
|
Source: https://github.com/Josef-Friedrich/check_systemd/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
Patch0: nagios-plugins-systemd.pymodule.patch
|
|
BuildRequires: python3-devel
|
|
Requires: python3
|
|
|
|
|
|
%description
|
|
This systemd check for nagios compatible monitoring systems will report a
|
|
degraded systemd to your monitoring solution. It can also be used to monitor
|
|
individual systemd services and timers units.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n check_systemd-%{version}
|
|
|
|
|
|
%build
|
|
%{__python3} setup.py build
|
|
|
|
|
|
%install
|
|
%{__python3} setup.py install --root %{buildroot} --optimize 2
|
|
mkdir -p %{buildroot}/%{nagiospluginsdir}
|
|
mv %{buildroot}/%{_bindir}/check_systemd %{buildroot}/%{nagiospluginsdir}
|
|
|
|
|
|
%check
|
|
PYTHONPATH=%{buildroot}/%{nagiospluginsdir}:${PYTHONPATH} PATH=%{buildroot}/%{nagiospluginsdir}:${PATH} %tox
|
|
|
|
|
|
%files
|
|
%doc README.*
|
|
%license LICENSE
|
|
%{nagiospluginsdir}/check_systemd
|
|
%{python3_sitelib}
|
|
|
|
|
|
%changelog
|