packages: nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spe...

glen glen at pld-linux.org
Thu Jan 14 14:40:25 CET 2010


Author: glen                         Date: Thu Jan 14 13:40:25 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, use check_bacula_log as name to reserve check_bacula name for plugin on bacula contrib

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

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec
diff -u /dev/null packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec:1.1
--- /dev/null	Thu Jan 14 14:40:25 2010
+++ packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec	Thu Jan 14 14:40:19 2010
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%define		plugin	check_bacula_log
+Summary:	Nagios plugin to check bacula status via bacula log
+Name:		nagios-plugin-%{plugin}
+Version:	0.3
+Release:	0.1
+License:	GPL v2
+Group:		Networking
+# Source0Download: http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1327&cf_id=24
+Source0:	nocturnal_nagios_plugins-1.0.tar.gz
+URL:		http://exchange.nagios.org/directory/Plugins/Backup-and-Recovery/Bacula/nagios%252Dcheck_bacula/details
+Requires:	nagios-common
+Requires:	nagios-libs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/nagios/plugins
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%description
+Nagios plugin that checks whether the backups made for today with the Bacula
+backup system were succesful. 
+
+This requires the Nagios user to have read access to the bacula log file. 
+
+%prep
+%setup -qc
+cat > nagios.cfg <<'EOF'
+# Usage:
+# %{plugin}
+define command {
+	command_name    %{plugin}
+	command_line    %{plugindir}/%{plugin} $ARG1$
+}
+
+define service {
+	use                     generic-service
+	service_description     Bacula job status
+
+	normal_check_interval   86400
+	notification_interval   86400
+	max_check_attempts      1
+
+	check_command           %{plugin}
+}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p check_bacula $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -a nagios.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}
+
+%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  2010/01/14 13:40:19  glen
+- new, use check_bacula_log as name to reserve check_bacula name for plugin on bacula contrib
================================================================


More information about the pld-cvs-commit mailing list