packages: nagios-plugin-check_vserver/check_vserver.cfg (NEW), nagios-plugi...

adamg adamg at pld-linux.org
Mon Jan 10 22:46:23 CET 2011


Author: adamg                        Date: Mon Jan 10 21:46:23 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/nagios-plugin-check_vserver:
   check_vserver.cfg (NONE -> 1.1)  (NEW), nagios-plugin-check_vserver.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_vserver/check_vserver.cfg
diff -u /dev/null packages/nagios-plugin-check_vserver/check_vserver.cfg:1.1
--- /dev/null	Mon Jan 10 22:46:23 2011
+++ packages/nagios-plugin-check_vserver/check_vserver.cfg	Mon Jan 10 22:46:18 2011
@@ -0,0 +1,21 @@
+# Usage:
+# check_vserver
+define command {
+	command_name    check_vserver
+	command_line    /usr/lib/nagios/plugins/check_vserver $ARG1$
+}
+
+define service {
+	use                     generic-service
+	name                    vserver
+	register                0
+	service_description     vserver
+
+	normal_check_interval   120
+	retry_check_interval    15
+	max_check_attempts      3
+
+	notification_interval   120
+
+	check_command           check_vserver
+}

================================================================
Index: packages/nagios-plugin-check_vserver/nagios-plugin-check_vserver.spec
diff -u /dev/null packages/nagios-plugin-check_vserver/nagios-plugin-check_vserver.spec:1.1
--- /dev/null	Mon Jan 10 22:46:23 2011
+++ packages/nagios-plugin-check_vserver/nagios-plugin-check_vserver.spec	Mon Jan 10 22:46:18 2011
@@ -0,0 +1,52 @@
+# $Revision$, $Date$
+%define		plugin	check_vserver
+Summary:	Nagios plugin to check vserver guest status
+Name:		nagios-plugin-%{plugin}
+Version:	1.0
+Release:	0.1
+License:	GPL v2
+Group:		Networking
+Source0:	http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1219&cf_id=24/check_vserver
+# Source0-md5:	217f967debd469dbec96e1ad16eadf33
+Source1:	%{plugin}.cfg
+URL:		http://exchange.nagios.org/directory/Plugins/Uncategorized/Opearting-Systems/Linux/check_vserver/details
+BuildRequires:	rpm-pythonprov
+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
+The plugin check_vserver checks if named vserver is running on a local
+machine.
+
+%prep
+%setup -qcT
+%{__sed} -e '1s,^#!.*python,#!%{__python},' %{SOURCE0} > %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/01/10 21:46:18  adamg
+- new
+
================================================================


More information about the pld-cvs-commit mailing list