File monitoring-plugins-vm-constraints.spec of Package monitoring-plugins-vm-constraints

#
# spec file for package monitoring-plugins-vm-constraints
#
# Copyright (c) 2012-2017 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/
#

Name:           monitoring-plugins-vm-constraints
Version:        0.002
Release:        1
License:        GPL-2.0+ or Artistic-1.0
Summary:        Nagios Network VM Constraints Check
Group:          System/Monitoring
Source0:        check_vm_constraints.pl
Source1:        vm_constraints.conf
BuildRequires:  nagios-rpm-macros
# nagios can execute the script with embedded perl
Recommends:     perl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This script attempts to check that not all VMs from a group are running
on the same virtualisation server. Syntax for the constraints file
is simply: one line per group, space separated names per line.

%prep

%build

%install
install -D -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_vm_constraints
install -D -m644 %{SOURCE1} %{buildroot}%{plugin_confdir}/vm_constraints.conf

%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{plugin_confdir}
%{nagios_plugindir}/check_vm_constraints
%config(noreplace) %{plugin_confdir}/vm_constraints.conf

%changelog
openSUSE Build Service is sponsored by