From a4cfc5c5c5f9cb8e0b8fae6644c2897ebc57223c Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 07:31:36 +0100 Subject: [PATCH] package created by autospec [release 3.5.1-1mamba;Fri Jan 04 2013] --- README.md | 6 +++++ nagios-plugins-logfiles.spec | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 nagios-plugins-logfiles.spec diff --git a/README.md b/README.md index a9c8d48..67fc676 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # nagios-plugins-logfiles +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. + diff --git a/nagios-plugins-logfiles.spec b/nagios-plugins-logfiles.spec new file mode 100644 index 0000000..faaa108 --- /dev/null +++ b/nagios-plugins-logfiles.spec @@ -0,0 +1,50 @@ +%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 +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 3.5.1-1mamba +- package created by autospec