File monitoring-plugins-racktables_problem.spec of Package monitoring-plugins-racktables_problem
#
# spec file for package monitoring-plugins-racktables_problem
#
# Copyright (c) 2015 SUSE LINUX 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-racktables_problem
Version: 1.4
Release: 0
Summary: Check if a RackTables object has a known problem
License: BSD-3-Clause
Group: System/Monitoring
Url: http://en.opensuse.org/monitoring-plugins-racktables_problem
Source0: check_racktables_problem
Source1: check_racktables_problem.ini
BuildRequires: nagios-rpm-macros
Requires: perl(Getopt::Long)
Requires: perl(Pod::Usage)
# nagios can execute the script with embedded perl
Recommends: perl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
check_racktables_problem allows you to concentrate all problems in your
Monitoring infrastructure. Often enough, there is a problem with a machine or
infrastructure related hardware that can not be found by the monitoring itself.
If you entered the informatoin in RackTables, this check will allow you to get
aware of those problems also in your monitoring.
%prep
#
%build
#
%install
install -D -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_racktables_problem
mkdir -p %{buildroot}/%{plugin_confdir}
install -m0640 %{SOURCE1} %{buildroot}/%{plugin_confdir}/check_racktables_problem.ini
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{plugin_confdir}
%{nagios_plugindir}/check_racktables_problem
%config(noreplace) %{plugin_confdir}/check_racktables_problem.ini
%changelog