File monitoring-plugins-systemd_status.spec of Package monitoring-plugins-systemd_status
#
# spec file for package check_systemd_status
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
Name: monitoring-plugins-systemd_status
Version: v2.1561284483.8cdd121
Release: 0
Summary: Script to check current system state as perceived by systemd
License: GPL-3.0+
Group: System/Monitoring
URL: https://github.com/kbabioch/check_systemd_status
Source0: check_systemd_status-%{version}.tar.xz
Patch0: fix-shebang.patch
BuildRequires: nagios-rpm-macros
Requires: python3
Requires: systemd
BuildArch: noarch
%description
This is a script that will check the systemd(1) status by parsing the output of
systemctl(1). It will signal warning (1) and/or critical (2) conditions via the
exit code when the system - as perceived by systemd - it not (yet) in optimal
(i.e. running) state.
This can, for instance, be used as a simple Nagios / Icinga check in order to
monitor the overall system status.
%prep
%setup -q -n check_systemd_status-%{version}
%patch0 -p1
%build
%install
install -D -m0755 check_systemd_status %{buildroot}/%{nagios_plugindir}/check_systemd_status
%files
%license COPYING*
%doc README*
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_systemd_status
%changelog