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

# spec file for package monitoring-plugins-nfsmounts
# 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-nfsmounts
Version:        1.0
Release:        100
License:        GPL-3.0+
Summary:        Checks all local NFS mounts
Group:          System/Monitoring
Source0:        check_nfsmounts
Source1:        GPLv3
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends:     perl
BuildRequires:  nagios-rpm-macros
Provides:       nagios-plugins-nfsmounts = %{version}-%{release}
Obsoletes:      nagios-plugins-nfsmounts < %{version}-%{release}
Requires:       monitoring-plugins-common
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

A perl script that checks all local NFS mounts by forking itself and trying to
chdir to it and (optionally) writing to a file. It includes performance data
and allows warnings based on thresholds.



install -D -m755 %{SOURCE0} %{buildroot}/%{nagios_plugindir}/check_nfsmounts
install -D -m644 %{SOURCE1} %{buildroot}/%{_defaultdocdir}/%{name}/COPYING

rm -rf %{buildroot}

%doc %{_defaultdocdir}/%{name}
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}

openSUSE Build Service is sponsored by