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

%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
BuildRequires:  nagios-rpm-macros
Requires:       perl(Date::Parse)
Requires:       perl(Nagios::Plugin)
Requires:       perl(VMware::VIRuntime)
BuildArch:      noarch

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.

%setup -q -c -n %{realname}-%{version}


install -D -m755 %{buildroot}%{nagios_plugindir}/

%dir %{nagios_libdir}
%dir %{nagios_plugindir}

openSUSE Build Service is sponsored by