packages: nagios-plugin-check_ldap_sync/check_ldap_sync.cfg (NEW), nagios-p...

glen glen at pld-linux.org
Wed Dec 14 17:27:58 CET 2011


Author: glen                         Date: Wed Dec 14 16:27:58 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_ldap_sync/check_ldap_sync.cfg
diff -u /dev/null packages/nagios-plugin-check_ldap_sync/check_ldap_sync.cfg:1.1
--- /dev/null	Wed Dec 14 17:27:58 2011
+++ packages/nagios-plugin-check_ldap_sync/check_ldap_sync.cfg	Wed Dec 14 17:27:53 2011
@@ -0,0 +1,20 @@
+# Usage:
+# check_ldap_sync
+define command {
+	command_name    check_ldap_sync
+	command_line    /usr/lib/nagios/plugins/check_ldap_sync -H $HOSTADDRESS$ $ARG1$
+}
+
+define service {
+	use                     generic-service
+	name                    ldap_sync
+	service_description     ldap_sync
+	register                0
+
+	normal_check_interval   30
+	retry_check_interval    60
+
+	notification_interval   15
+
+	check_command           check_ldap_sync
+}

================================================================
Index: packages/nagios-plugin-check_ldap_sync/nagios-plugin-check_ldap_sync.spec
diff -u /dev/null packages/nagios-plugin-check_ldap_sync/nagios-plugin-check_ldap_sync.spec:1.1
--- /dev/null	Wed Dec 14 17:27:58 2011
+++ packages/nagios-plugin-check_ldap_sync/nagios-plugin-check_ldap_sync.spec	Wed Dec 14 17:27:53 2011
@@ -0,0 +1,49 @@
+# $Revision$, $Date$
+%define		plugin	check_ldap_sync
+%include	/usr/lib/rpm/macros.perl
+Summary:	Nagios plugin to check LDAP servers are synchronization
+Name:		nagios-plugin-%{plugin}
+Version:	0.1
+Release:	0.1
+License:	GPL v2
+Group:		Networking
+Source0:	https://secure.opsera.com/svn/opsview/trunk/opsview-core/nagios-plugins/check_ldap_sync
+# Source0-md5:	c7a95aa75b929e032319defdf605cba0
+BuildRequires:	rpm-perlprov >= 4.1-13
+Requires:	nagios-common
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/nagios/plugins
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%description
+Nagios plugin to check that specified LDAP servers are synchronised.
+
+%prep
+%setup -qcT
+%{__sed} -e 's,%{_prefix}/local/nagios/perl/lib,%{plugindir},' %{SOURCE0} > %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -p %{plugin}.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -p %{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/12/14 16:27:53  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list