File monitoring-plugins-saphana_health.spec of Package monitoring-plugins-saphana_health
#
# spec file for package monitoring-plugins-saphana_health
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define realname saphana_nagios
Name: monitoring-plugins-saphana_health
Version: 0~git20250211
Release: 0
Summary: A Plugin that checks various parameters of a SAP HANA system
License: Apache-2.0
Group: System/Monitoring
URL: https://github.com/rodolphe-alt/saphana_nagios
Source: %{realname}-%{version}.tar.xz
Source1: icinga2_check_saphana_health_command.conf
BuildRequires: nagios-rpm-macros
Requires: python3-hdbcli
Requires: python3-PrettyTable
BuildArch: noarch
%description
A Plugin that checks various parameters of a SAP HANA system.
%prep
%setup -q -n %{realname}-%{version}
cp %{SOURCE1} .
# add shebang
sed -i '1 i\#!%{_bindir}/python3' check_saphana_health.py
%build
%install
install -D -m 0755 check_saphana_health.py %{buildroot}/%{nagios_plugindir}/check_saphana_health
%files
%license LICENSE
%doc README.md icinga2_check_saphana_health_command.conf
%dir %{nagios_libdir}
%{nagios_plugindir}/
%changelog