Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
monitoring-plugins-smart
monitoring-plugins-smart.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File monitoring-plugins-smart.spec of Package monitoring-plugins-smart
# # spec file for package monitoring-plugins-smart # # Copyright (c) 2009-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-smart Version: 5.2 Release: 1 License: SUSE-Public-Domain Summary: Check SMART status of a given disk Url: http://www.claudiokuenzler.com/nagios-plugins/check_smart.php Group: System/Monitoring Source0: check_smart.pl Source1: usr.lib.nagios.plugins.check_smart Source3: monitoring-plugins-smart-README.SUSE Patch0: enable_auto_interface.patch BuildRequires: nagios-rpm-macros Provides: nagios-plugins-smart = %{version}-%{release} Obsoletes: nagios-plugins-smart < 1.02 Requires: smartmontools >= 5.39 Requires: monitoring-plugins-common Requires: sudo Requires: perl(Getopt::Long) Requires: perl(File::Basename) Requires: perl(FindBin) Recommends: apparmor-parser BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description This plugin does SMART monitoring both ATA and SCSI disks, has an easy usage syntax, and automatically produces perfdata for all applicable metrics. Note: On older distributions you need a line like nagios ALL=NOPASSWD: /usr/sbin/smartctl in /etc/sudoers to run this script as non privileged user. Since SLES 12/openSUSE 12.1, there is a file %{_sysconfdir}/sysconfig/sudoers.d/%{name} which holds the same content and should be used automatically. %prep %setup -q -T -c %{name} install -m755 %{SOURCE0} check_smart %patch0 -p0 install -m644 %{SOURCE3} README.SUSE %build %install install -D -m755 check_smart %{buildroot}/%{nagios_plugindir}/check_smart install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_smart %if 0%{?suse_version} > 1130 mkdir -p %{buildroot}/%{_sysconfdir}/sudoers.d cat >> %{buildroot}/%{_sysconfdir}/sudoers.d/%{name} << EOF # the next line is needed for %{name} to allow the correct use of smartctl nagios ALL=(root) NOPASSWD: /usr/sbin/smartctl EOF %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README.SUSE %dir %{nagios_libdir} %dir %{_sysconfdir}/apparmor.d %dir %{nagios_plugindir} %{nagios_plugindir}/check_smart %config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_smart %if 0%{?suse_version} > 1130 %dir %{_sysconfdir}/sudoers.d %config(noreplace) %{_sysconfdir}/sudoers.d/%{name} %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor