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

# spec file for package monitoring-plugins-apache2
# Copyright (c) 2013-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-apache2
Version:        1.3.0
Release:        100
License:        GPL-2.0
Summary:        Nagios sh compliant script to check Apache's HTTP Server via mod_status and ps
Group:          System/Monitoring

Source1:        check_apache2.php
Source2:        LICENSE
Source3:        README

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  nagios-rpm-macros
Provides:       monitoring-plugins-apache2 = %{version}-%{release}
Obsoletes:      monitoring-plugins-apache2 < %{version}-%{release}

%description is a Nagios plugin to check the Apache's server status.
It monitors requests per second, bytes per second/request,
amount of busy/idle workers and its CPU load. 

%{__cp} %{SOURCE2} ./LICENSE
%{__cp} %{SOURCE3} ./README


%{__install} -D -m755 %{SOURCE0} %{buildroot}/%{nagios_plugindir}/
%{__install} -D -m644 %{SOURCE1} %{buildroot}/%{pnp4nagios_templatedir}/check_apache2.php

%{__rm} -rf %{buildroot}

%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{pnp4nagios_datadir}
%dir %{pnp4nagios_templatedir}

openSUSE Build Service is sponsored by