File monitoring-plugins-galera_cluster.spec of Package monitoring-plugins-galera_cluster
#
# spec file for package monitoring-plugins-galera_cluster
#
# 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-galera_cluster
Version: 1.1~git6
Release: 0
License: MIT
Summary: A nagios plugin to check status of a galera cluster
Url: https://github.com/fridim/nagios-plugin-check_galera_cluster
Group: System/Monitoring
Source: nagios-plugin-check_galera_cluster-%{version}.tar.bz2
BuildRequires: nagios-rpm-macros
Requires: bash
Requires: bc
Requires: mysql-client
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
check_galera_cluster is a Nagios plugin to monitor Galera cluster status.
check_galera_cluster [-u USER] [-p PASSWORD] [-H HOST] [-P PORT] [-w SIZE] [-c SIZE] [-f FLOAT] [-0]
Options:
u)
MySQL user.
p)
MySQL password.
H)
MySQL host.
P)
MySQL port.
w)
Sets minimum number of nodes in the cluster when WARNING is raised. (default is same as critical).
c)
Sets minimum number of nodes in the cluster when CRITICAL is raised. (default is 2).
f)
Sets critical value of wsrep_flow_control_paused (default is 0.1).
0)
Rise CRITICAL if the node is not primary
%prep
%setup -q -n nagios-plugin-check_galera_cluster-%{version}
%build
#
%install
install -D -m755 check_galera_cluster %buildroot/%{nagios_plugindir}/check_galera_cluster
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc README*
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_galera_cluster
%changelog