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

# spec file for package monitoring-plugins-logfiles
# Copyright (c) 2015 SUSE LINUX 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

%define         base_name check_logfiles
Name:           monitoring-plugins-logfiles
Version:        3.9
Release:        0
Summary:        Check logfiles monitoring plugin
License:        GPL-2.0+
Group:          System/Monitoring
BuildRequires:  autoconf
BuildRequires:  nagios-rpm-macros
BuildRequires:  perl
Requires:       perl
Provides:       nagios-plugins-logfiles = %{version}-%{release}
Obsoletes:      nagios-plugins-logfiles <
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

The conventional plugins which scan log files are not adequate in a mission
critical environment. Especially the missing ability to handle logfile
rotation and inclusion of the rotated archives in the scan allow gaps in the
monitoring. Check_logfiles was written because these deficiencies would have
prevented Nagios from replacing a propritetary monitoring system.

%setup -q -n %{base_name}-%{version}

%configure \
    --bindir=%{nagios_plugindir} \
    --libdir=%{nagios_plugindir} \
    --prefix=%{nagios_plugindir} \
make %{?_smp_mflags}

install -D -m755 plugins-scripts/%{base_name} %{buildroot}/%{nagios_plugindir}/%{base_name}
mkdir -p %{buildroot}/%{_var}/cache/%{base_name}

# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %attr(775, root, nagios) %{_var}/cache/%{base_name}

openSUSE Build Service is sponsored by