File monitoring-plugins-fs_frag.spec of Package monitoring-plugins-defrag
#
# spec file for package monitoring-plugins-fs_defrag
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: monitoring-plugins-fs_frag
Version: 0.1
Release: 0
Summary: Check filesystem defragmentation
Group: System/Monitoring
License: MIT
URL: http://example.com
Source0: check_fs_frag.sh
Source1: check_fs_frag.sudoers
Source2: check_fs_frag.nrpe
BuildRequires: nagios-rpm-macros
BuildRequires: sudo
Requires: sudo
Requires: monitoring-plugins-common
Requires: bc
Requires: coreutils
Requires: sed
Recommends: e2fsprogs
Recommends: xfsprogs
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Checks fragementation of local file systems (xfs, ext2, ext3, ext4).
Includes some perfdata for statistics.
%prep
#
%build
#
%install
install -Dm0755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_fs_frag.sh
install -Dm0400 %{SOURCE1} %{buildroot}%{_sysconfdir}/sudoers.d/check_fs_frag
install -Dm0644 %{SOURCE2} %{buildroot}%{nrpe_sysconfdir}/check_fs_frag.cfg
%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{nrpe_sysconfdir}
%{nagios_plugindir}/check_fs_frag.sh
%config(noreplace) %{_sysconfdir}/sudoers.d/check_fs_frag
%config(noreplace) %{nrpe_sysconfdir}/check_fs_frag.cfg
%changelog