2014-07-30 22:53:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package monitoring-plugins-mysql_health
|
|
|
|
#
|
2016-08-14 12:47:16 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-07-30 22:53:50 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-08-14 12:47:16 +00:00
|
|
|
%define realname check_mysql_health
|
2014-07-30 22:53:50 +00:00
|
|
|
Name: monitoring-plugins-mysql_health
|
2016-12-11 19:59:51 +00:00
|
|
|
Version: 3.0.0.5
|
2015-08-02 12:16:59 +00:00
|
|
|
Release: 0
|
2014-07-30 22:53:50 +00:00
|
|
|
Summary: Check various parameters of a MySQL database
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Monitoring
|
|
|
|
Url: http://labs.consol.de/lang/en/nagios/check_mysql_health/
|
2016-08-14 12:47:16 +00:00
|
|
|
Source0: https://labs.consol.de/assets/downloads/nagios/%{realname}-%{version}.tar.gz
|
2014-07-30 22:53:50 +00:00
|
|
|
BuildRequires: nagios-rpm-macros
|
|
|
|
Requires: mysql-client
|
|
|
|
Recommends: perl(DBD::mysql)
|
|
|
|
Recommends: perl(DBI)
|
2016-08-14 12:47:16 +00:00
|
|
|
Provides: nagios-plugins-mysql_health = %{version}-%{release}
|
|
|
|
Obsoletes: nagios-plugins-mysql_health < %{version}-%{release}
|
2014-07-30 22:53:50 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2016-08-14 12:47:16 +00:00
|
|
|
%setup -q -n %{realname}-%{version}
|
2014-07-30 22:53:50 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--libexecdir=%{nagios_plugindir} \
|
|
|
|
--with-nagios-user=%{nagios_user} \
|
|
|
|
--with-nagios-group=%{nagios_group} \
|
|
|
|
--with-mymodules-dyn-dir=%{nagios_plugindir} \
|
|
|
|
--with-mymodules-dir=%{nagios_plugindir} \
|
|
|
|
--with-perl=%{_bindir}/perl
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/%{nagios_plugindir}
|
|
|
|
mkdir -p %{buildroot}/%{pnp4nagios_templatedir}
|
2016-08-14 12:47:16 +00:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2014-07-30 22:53:50 +00:00
|
|
|
mv contrib/check_mysql_health.php %{buildroot}/%{pnp4nagios_templatedir}/check_mysql_health.php
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-03-01 10:04:19 +00:00
|
|
|
%attr(0644,root,root) %doc README TODO NEWS ChangeLog AUTHORS COPYING contrib
|
2014-07-30 22:53:50 +00:00
|
|
|
# avoid build dependecy of nagios - own the dirs
|
|
|
|
%dir %{nagios_libdir}
|
|
|
|
%{nagios_plugindir}/
|
|
|
|
%dir %{pnp4nagios_datadir}
|
|
|
|
%dir %{pnp4nagios_templatedir}
|
2015-03-01 10:04:19 +00:00
|
|
|
%attr(0644,root,root) %{pnp4nagios_templatedir}/check_mysql_health.php
|
2014-07-30 22:53:50 +00:00
|
|
|
|
|
|
|
%changelog
|