File monitoring-plugins-nexus.spec of Package monitoring-plugins-nexus
#
# spec file for package monitoring-plugins-nexus
#
# Copyright (c) 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-nexus
Version: 1.0
Release: 0
License: GPL-2.0+
Summary: Plugin for monitoring interface throughput
Url: https://github.com/david-barbion/monitoring.git
Group: System/Monitoring
Source: check_cisco_nexus.tar.bz2
Patch0: check_cisco_nexus-include-monitoring.patch
Requires: perl(Getopt::Long)
Requires: perl(Monitoring::Plugin)
Requires: perl(Switch)
BuildRequires: nagios-rpm-macros
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains monitoring plugins for monitoring cisco nexus switches
%prep
%setup -n check_cisco_nexus
%patch0 -p1
%build
#
%install
install -Dm755 check_cisco_nexus_cpu.pl %{buildroot}%{nagios_plugindir}/check_cisco_nexus_cpu.pl
install -Dm755 check_cisco_nexus_hardware.pl %{buildroot}%{nagios_plugindir}/check_cisco_nexus_hardware.pl
install -Dm755 check_cisco_nexus_mem.pl %{buildroot}%{nagios_plugindir}/check_cisco_nexus_mem.pl
%files
%defattr(-,root,root)
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/*
%changelog