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

#
# spec file for package monitoring-plugins-memcached
#
# Copyright (c) 2017 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-memcached
Version:        0.83
Release:        0
License:        GPL-2.0+ and LGPL-3.0+
Summary:        Memcached Check plugin
Url:            http://william.leibzon.org/nagios/
Group:          System/Monitoring
Source0:        check_memcached.pl
Source1:        check_memcached.php
Requires:       perl(IO::Socket)
Requires:       perl(Time::HiRes)
Requires:       perl(Text::ParseWords)
Requires:       perl(Cache::Memcached)
Requires:       perl(Getopt::Long)
BuildRequires:  nagios-rpm-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is Memcached Check plugin. It gets stats variables and allows to set thresholds
on their value or their rate of change. It can measure response time, calculate
hitrate, memory utilization and other data. The plugin is based on check_mysqld.pl.

It also returns status variables as perfomance data for further nagios 2.0
post-processing.

%prep
#
%build
#
%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_memcached.pl
install -D -m644 %{SOURCE1} %{buildroot}/%{pnp4nagios_templatedir}/check_memcached.php

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_memcached.pl
%dir %{pnp4nagios_datadir}
%dir %{pnp4nagios_templatedir}
%{pnp4nagios_templatedir}/check_memcached.php

%changelog
openSUSE Build Service is sponsored by