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 http://bugs.opensuse.org/
#
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
Url: http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details
Group: System/Monitoring
Source0: check_apache2.sh
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
check_apache2.sh 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.
%prep
%{__cp} %{SOURCE2} ./LICENSE
%{__cp} %{SOURCE3} ./README
%build
true
%install
%{__install} -D -m755 %{SOURCE0} %{buildroot}/%{nagios_plugindir}/check_apache2.sh
%{__install} -D -m644 %{SOURCE1} %{buildroot}/%{pnp4nagios_templatedir}/check_apache2.php
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README LICENSE
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{pnp4nagios_datadir}
%dir %{pnp4nagios_templatedir}
%{nagios_plugindir}/check_apache2.sh
%{pnp4nagios_templatedir}/check_apache2.php
%changelog