packages: nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spe...
glen
glen at pld-linux.org
Fri Jan 22 11:52:42 CET 2010
Author: glen Date: Fri Jan 22 10:52:42 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- move plugin config to separate file in cvs
---- Files affected:
packages/nagios-plugin-check_bacula_log:
nagios-plugin-check_bacula_log.spec (1.9 -> 1.10) , check_bacula_log.cfg (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec
diff -u packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec:1.9 packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec:1.10
--- packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec:1.9 Fri Jan 22 11:50:57 2010
+++ packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec Fri Jan 22 11:52:37 2010
@@ -8,6 +8,7 @@
License: GPL v2
Group: Networking
Source0: %{plugin}.pl
+Source1: %{plugin}.cfg
URL: http://exchange.nagios.org/directory/Plugins/Backup-and-Recovery/Bacula/nagios%252Dcheck_bacula/details
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -31,33 +32,11 @@
%prep
%setup -qcT
-cat > nagios.cfg <<'EOF'
-# Usage:
-# %{plugin} -F /var/log/bacula/log
-define command {
- command_name %{plugin}
- command_line %{plugindir}/%{plugin} $ARG1$
-}
-
-define service {
- use generic-service
- name bacula_log
- register 0
- service_description Bacula job status
-
- normal_check_interval 1440
- notification_interval 1440
- max_check_attempts 1
-
- check_command %{plugin}
-}
-EOF
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
install -p %{SOURCE0} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
-cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
%clean
rm -rf $RPM_BUILD_ROOT
@@ -73,6 +52,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2010/01/22 10:52:37 glen
+- move plugin config to separate file in cvs
+
Revision 1.9 2010/01/22 10:50:57 glen
- move source to pld cvs
================================================================
Index: packages/nagios-plugin-check_bacula_log/check_bacula_log.cfg
diff -u /dev/null packages/nagios-plugin-check_bacula_log/check_bacula_log.cfg:1.1
--- /dev/null Fri Jan 22 11:52:42 2010
+++ packages/nagios-plugin-check_bacula_log/check_bacula_log.cfg Fri Jan 22 11:52:36 2010
@@ -0,0 +1,19 @@
+# Usage:
+# check_bacula_log -F /var/log/bacula/log
+define command {
+ command_name check_bacula_log
+ command_line /usr/lib/nagios/plugins/check_bacula_log $ARG1$
+}
+
+define service {
+ use generic-service
+ name bacula_log
+ register 0
+ service_description Bacula job status
+
+ normal_check_interval 1440
+ notification_interval 1440
+ max_check_attempts 1
+
+ check_command check_bacula_log
+}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_bacula_log/nagios-plugin-check_bacula_log.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list