[packages/nagios-plugin-check_iface] - new, by Wojciech Błaszkowski <wojciech at blaszkowski.com>

baggins baggins at pld-linux.org
Tue May 1 15:52:53 CEST 2018


commit c7cbec79381b8ced351d4a388d1c07975a2a2d66
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue May 1 15:52:19 2018 +0200

    - new, by Wojciech Błaszkowski <wojciech at blaszkowski.com>

 nagios-plugin-check_iface.spec | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
---
diff --git a/nagios-plugin-check_iface.spec b/nagios-plugin-check_iface.spec
new file mode 100644
index 0000000..b71bf7a
--- /dev/null
+++ b/nagios-plugin-check_iface.spec
@@ -0,0 +1,37 @@
+%define		plugin	check_iface
+Summary:	Nagios/Icinga plugin for checking network interface speed
+Name:		nagios-plugin-%{plugin}
+Version:	1.0
+Release:	1
+License:	GPL
+Group:		Networking
+Source0:	https://raw.githubusercontent.com/wifibox/linux-admin-tools/master/nagios/plugins/check_net_iface
+# Source0-md5:	30366d25cf1e3b035cf49f2d5d556cbe
+URL:		https://github.com/wifibox/linux-admin-tools/blob/master/nagios/plugins/check_net_iface
+Requires:	nagios-common
+Requires:	nagios-plugins-libs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/nagios/plugins
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%description
+Nagios/Icinga plugin for checking network interface speed.
+
+%prep
+%setup -q -n monitoring-plugin-%{plugin}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin}.sh $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+sed -e 's, at plugindir@,%{plugindir},' %{plugin}.cfg > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_iface.git/commitdiff/c7cbec79381b8ced351d4a388d1c07975a2a2d66



More information about the pld-cvs-commit mailing list