51 lines
1.6 KiB
RPMSpec
51 lines
1.6 KiB
RPMSpec
%global plugin check_logfiles
|
|
%global nagiospluginsdir %{_libdir}/nagios/plugins
|
|
|
|
Name: nagios-plugins-logfiles
|
|
Version: 3.5.1
|
|
Release: 1mamba
|
|
Summary: A Nagios plugin which scans log files for specific patterns
|
|
Group: Network/Monitoring
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
URL: http://labs.consol.de/lang/en/nagios/check_logfiles/
|
|
Source: http://labs.consol.de/download/shinken-nagios-plugins/check_logfiles-%{version}.tar.gz
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: nagios-plugins
|
|
Requires: perl
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
This Nqgios plugin looks for patterns in files.
|
|
It is capable of detecting logfile rotation.
|
|
If you tell it how the rotated archives look like, it will also examine these files.
|
|
Traditional logfile plugins were not aware of the gap which could occur, so under some circumstances they ignored what had happened between their checks.
|
|
In a production environment this is not tolerable, that's why check_logfiles came into being.
|
|
|
|
%prep
|
|
%setup -q -n %{plugin}-%{version}
|
|
|
|
%build
|
|
%configure --libexecdir=%{nagiospluginsdir}
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{nagiospluginsdir}/%{plugin}
|
|
%doc AUTHORS COPYING README
|
|
|
|
%changelog
|
|
* Fri Jan 04 2013 Davide Madrisan <davide.madrisan@gmail.com> 3.5.1-1mamba
|
|
- package created by autospec
|