[packages/nagios-plugin-check_scan: 1/5] new, version 20051011

glen glen at pld-linux.org
Mon Jun 8 14:18:31 CEST 2015


commit 1aa82fb79d70ca255922ff2038e335c586c5867c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jun 8 15:10:22 2015 +0300

    new, version 20051011

 nagios-plugin-check_scan.spec | 49 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
---
diff --git a/nagios-plugin-check_scan.spec b/nagios-plugin-check_scan.spec
new file mode 100644
index 0000000..0d66032
--- /dev/null
+++ b/nagios-plugin-check_scan.spec
@@ -0,0 +1,49 @@
+%define		plugin	check_scan
+Summary:	A nmap scanner plugin for Nagios
+Name:		nagios-plugin-%{plugin}
+Version:	0.1
+Release:	0.1
+License:	GPL v2+
+Group:		Networking
+Source0:	http://www.altsec.info/check_scan.sh
+# Source0-md5:	8e79becb95012c2aedf0b9c68373f928
+URL:		http://www.altsec.info/check_scan.html
+Requires:	nagios-common
+Requires:	grep
+Requires:	nmap
+Requires:	coreutils
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/nagios/plugins
+%define		nrpeddir	/etc/nagios/nrpe.d
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%description
+A nmap scanner plugin for Nagios
+
+Here's what it does:
+- On the initial scan, it creates a baseline scan for future
+  comparison.
+- On each subsequent check, it compares the new scan against the
+  baseline.
+- Changes are reported in "warning" status, showing the open port.
+
+check_scan.sh does a "TCP connect scan", so it doesn't have to run as
+root.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{plugindir}/%{plugin}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_scan.git/commitdiff/ddb074f73a0d022d05cfc8307552149cf2e713f5



More information about the pld-cvs-commit mailing list