File monitoring-plugins-file-notexist.spec of Package monitoring-plugins-file-notexist
#
# spec file for package monitoring-plugins-file-notexist
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: monitoring-plugins-file-notexist
Summary: Check age of files in a directory
Version: 0.4
Release: 1
Url: http://en.opensuse.org/Nagios-plugins-file-notexist
License: BSD-4-Clause
Group: System/Monitoring
Source0: check_file-notexist
BuildArch: noarch
BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-file-notexist = %{version}-%{release}
Obsoletes: nagios-plugins-file-notexist < %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This plugin checks a directory for files that match a blacklist
pattern.
Usage: check_file-notexist -p /tmp -x failed
Options:
-p|--pathnames : absolute path to the directory
-w|--blacklistw : string that triggers warning status
if found as part of the filename
-b|--blacklist : string that triggers critical status
if found as part of the filename
Authors:
--------
Ruediger Oertel
%prep
%build
%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_file-notexist
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_file-notexist
%changelog