File monitoring-plugins-drbd.spec of Package monitoring-plugins-drbd

# spec file for package monitoring-plugins-drbd
# Copyright (c) 2014 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-drbd
Summary:        Checks the state of DRBD devices
Version:        0.5.3
Release:        100
License:        GPL-2.0+
Group:          System/Monitoring
Source0:        check_drbd
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends:     perl
Requires:       perl(File::Basename)
Requires:       perl(Getopt::Long)
BuildRequires:  nagios-rpm-macros
%if 0%{?suse_version} < 01210
Requires:       drbd-kmp
Provides:       nagios-plugins-drbd = %{version}-%{release}
Obsoletes:      nagios-plugins-drbd < %{version}-%{release}
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is a monitoring plugin for checking DRBD device states. It parses the
/proc/drbd device and analyses the output.

   Brandon Lee Poyner 



install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_drbd

rm -rf %buildroot

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

openSUSE Build Service is sponsored by