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

#
# spec file for package monitoring-plugins-smb
#
# Copyright (c) 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-smb
Version:        1.0
Release:        100
License:        GPL-2.0+
Summary:        Check export of samba shares
# http://planet.pks.mpg.de/trac/site/browser/src/nagios/plugins/check_smb.sh?rev=257
Url:            http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/SMB/check_smb/details
Group:          System/Monitoring
Source0:        check_smb
BuildRequires:  nagios-rpm-macros
Provides:       nagios-plugins-smb = %{version}-%{release}
Obsoletes:      nagios-plugins-smb < %{version}-%{release}
Requires:       samba-client
Requires:       monitoring-plugins-common
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
This plugin calls smbclient as guest to check some host's cifs exports. 

%prep

%build

%install
install -Dm755 %{SOURCE0} %{buildroot}/%{nagios_plugindir}/check_smb

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%{nagios_libdir}
%{nagios_plugindir}/

%changelog
openSUSE Build Service is sponsored by