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

Name:           monitoring-plugins-memcached
Version:        0.83
Release:        0
License:        GPL-2.0+ and LGPL-3.0+
Summary:        Memcached Check plugin
Group:          System/Monitoring
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

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

It also returns status variables as perfomance data for further nagios 2.0

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

rm -rf %{buildroot}

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

openSUSE Build Service is sponsored by