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

Name:           monitoring-plugins-galera_cluster
Version:        1.1~git6
Release:        0 
License:        MIT
Summary:        A nagios plugin to check status of a 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

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]

    MySQL user.
    MySQL password.
    MySQL host.
    MySQL port.
    Sets minimum number of nodes in the cluster when WARNING is raised. (default is same as critical).
    Sets minimum number of nodes in the cluster when CRITICAL is raised. (default is 2).
    Sets critical value of wsrep_flow_control_paused (default is 0.1).
    Rise CRITICAL if the node is not primary

%setup -q -n nagios-plugin-check_galera_cluster-%{version}

install -D -m755 check_galera_cluster %buildroot/%{nagios_plugindir}/check_galera_cluster

rm -rf %buildroot

%doc README*
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}

openSUSE Build Service is sponsored by