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

# spec file for package monitoring-plugins-gwfl
# 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-gwfl
Version:        2.1
Release:        0
Summary:        SNMP checks to monitor a lot of HP ProLiant systems
License:        GPL-2.0
Group:          System/Monitoring
Source:         gwfl-nagios-plugins-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  nagios-rpm-macros
BuildRequires:  net-snmp-devel
BuildRequires:  tcpd-devel
Provides:       nagios-plugins-gwfl = %{version}-%{release}
Obsoletes:      nagios-plugins-gwfl < %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1020
BuildRequires:  libcurl-devel
BuildRequires:  curl-devel

The GWFL Nagios Plugins introduced more advanced monitoring, with
better data consolidation, meaning less performance and administration
overhead. Also, the structure of the plugins meant anyone with a
little C knowledge could easily write more plugins using the SNMPGET
function included in the GWFL plugins, and using a similar coding
format to the plugins provided.

SNMP GETNEXT functionality is included, so that number of
CPUs/PSUs/Drives need not be specified, the plugins will determine
this themselves.

%setup -q -n gwfl-nagios-plugins-%{version}

make %{?_smp_mflags}
make apache %{?_smp_mflags}

make install DESTDIR=%{buildroot}/%{nagios_plugindir}/
pushd apache
make install DESTDIR=%{buildroot}/%{nagios_plugindir}/

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

openSUSE Build Service is sponsored by