File monitoring-plugins-esxi_hardware.spec of Package monitoring-plugins-esxi_hardware

#
# spec file for package monitoring-plugins-esxi_hardware
#
# Copyright (c) 2015-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 check_esxi_hardware
Name:           monitoring-plugins-esxi_hardware
Version:        20250716
Release:        0
Summary:        A Nagios plugin to monitor the hardware of ESX and ESXi servers
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            https://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php
#Git-Clone:     https://github.com/Napsty/check_esxi_hardware.git
Source0:        https://github.com/Napsty/check_esxi_hardware/archive/refs/tags/%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       python3-pywbem
Requires:       python3-packaging
BuildArch:      noarch

%description
This Plugin monitors the health status of VMware ESX and ESXi servers.

Note:
You have to enable the CIM Server (WBEM service) in ESXi.
https://www.claudiokuenzler.com/blog/1280/how-to-enable-cim-server-wbem-service-esxi-8

%prep
%autosetup -n %{realname}-%{version}

%build

%install
install -D -m 0755 check_esxi_hardware.py %{buildroot}/%{nagios_plugindir}/check_esxi_hardware.py

%files
%doc README.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}/
%{nagios_plugindir}/check_esxi_hardware.py

%changelog
openSUSE Build Service is sponsored by