File nagios-plugins-mysql_health.spec of Package nagios-plugins-mysql_health

# spec file for package nagios-plugins-mysql_health
# Copyright (c) 2013 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

Name:           nagios-plugins-mysql_health
Release:        0
License:        GPL-2.0+
Summary:        Check various parameters of a MySQL database
Group:          System/Monitoring
Source0:        check_mysql_health-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       mysql-client
Recommends:     perl(DBD::mysql)
Recommends:     perl(DBI)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

When using a database that are business critical it can be a good idea to
monitor the internals.

This Nagios plugin allows you to monitor the internal details of your
MySQL database.

%setup -q -n check_mysql_health-%{version}

%configure \
	--libdir=%{nagios_plugindir} \
	--with-mymodules-dyn-dir=%{nagios_plugindir} \
 	--with-mymodules-dir=%{nagios_plugindir} \

mkdir -p %{buildroot}/%{nagios_plugindir}
mv %{buildroot}%{_prefix}/lib/check_mysql_health %{buildroot}/%{nagios_plugindir}/

rm -rf %{buildroot}

# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}

openSUSE Build Service is sponsored by