File monitoring-plugins-vmware_snapshots.spec of Package monitoring-plugins-vmware_snapshots
#
# spec file for package monitoring-plugins-check_vmware_snapshots
#
# Copyright (c) 2015 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/
#
%define realname check_vmware_snapshots
Name: monitoring-plugins-vmware_snapshots
Version: 0.15
Release: 0
Summary: This plugin checks the age and count of VM snapshots
License: GPL-2.0-or-later
Group: System/Monitoring
URL: https://labs.consol.de/nagios/check_vmware_snapshots/
Source: https://labs.consol.de/assets/downloads/nagios/check_vmware_snapshots.pl_.tar.gz
BuildRequires: nagios-rpm-macros
Requires: perl(Date::Parse)
Requires: perl(Nagios::Plugin)
Requires: perl(VMware::VIRuntime)
BuildArch: noarch
%description
This plugin checks the age and count of VM snapshots in a VMWare ESXi/vSphere environment.
It checks the vCenter’s database and is able to list all snapshots which are older than
X days or more than the allowed count per virtual machine.
%prep
%setup -q -c -n %{realname}-%{version}
%build
true
%install
install -D -m755 check_vmware_snapshots.pl %{buildroot}%{nagios_plugindir}/check_vmware_snapshots.pl
%files
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_vmware_snapshots.pl
%changelog