[icinga-checkins] icinga.org: icinga-core/r1.4: install: fix event handlers cmd file location in contrib #1501

git at icinga.org git at icinga.org
Tue Jun 7 16:16:08 CEST 2011


Module: icinga-core
Branch: r1.4
Commit: 770faea27b87a5770867454133134dcb5cf3e688
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=770faea27b87a5770867454133134dcb5cf3e688

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Jun  7 16:14:20 2011 +0200

install: fix event handlers cmd file location in contrib #1501

fixes #1501

---

 Changelog                                          |    3 +++
 configure                                          |    6 ++++++
 configure.in                                       |    6 ++++++
 contrib/eventhandlers/.gitignore                   |    4 ++++
 ...ice_checks => disable_active_service_checks.in} |    2 +-
 ...able_notifications => disable_notifications.in} |    2 +-
 ...vice_checks => enable_active_service_checks.in} |    2 +-
 ...nable_notifications => enable_notifications.in} |    2 +-
 8 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/Changelog b/Changelog
index a22304e..7a11dfe 100644
--- a/Changelog
+++ b/Changelog
@@ -14,6 +14,9 @@ FIXES
 * classic ui: fixing tac.cgi header problems with counting and adding pending and descritptions #1505 #1506 #1508
 * classic ui: corrected behaviour of pending states in tac header #1508
 
+* install: fix event handlers cmd file location in contrib #1501
+
+
 1.4.0 - 11/05/2011
 
 ENHANCEMENTS
diff --git a/configure b/configure
index 84b466d..aa0720b 100755
--- a/configure
+++ b/configure
@@ -8273,7 +8273,13 @@ fi
 
 
 perl subst $srcdir/include/locations.h
+
 perl subst $srcdir/contrib/eventhandlers/submit_check_result
+perl subst $srcdir/contrib/eventhandlers/disable_active_service_checks
+perl subst $srcdir/contrib/eventhandlers/disable_notifications
+perl subst $srcdir/contrib/eventhandlers/enable_active_service_checks
+perl subst $srcdir/contrib/eventhandlers/enable_notifications
+
 perl subst $srcdir/html/index.html
 perl subst $srcdir/html/menu.html
 
diff --git a/configure.in b/configure.in
index 20f4ab1..0e66961 100644
--- a/configure.in
+++ b/configure.in
@@ -1171,7 +1171,13 @@ AC_OUTPUT(Makefile subst solaris/pkginfo base/Makefile common/Makefile contrib/M
 
 
 perl subst $srcdir/include/locations.h
+
 perl subst $srcdir/contrib/eventhandlers/submit_check_result
+perl subst $srcdir/contrib/eventhandlers/disable_active_service_checks
+perl subst $srcdir/contrib/eventhandlers/disable_notifications
+perl subst $srcdir/contrib/eventhandlers/enable_active_service_checks
+perl subst $srcdir/contrib/eventhandlers/enable_notifications
+
 perl subst $srcdir/html/index.html
 perl subst $srcdir/html/menu.html
 
diff --git a/contrib/eventhandlers/.gitignore b/contrib/eventhandlers/.gitignore
index 101294c..a78c1a9 100644
--- a/contrib/eventhandlers/.gitignore
+++ b/contrib/eventhandlers/.gitignore
@@ -1 +1,5 @@
 submit_check_result
+disable_active_service_checks
+disable_notifications
+enable_active_service_checks
+enable_notifications
diff --git a/contrib/eventhandlers/disable_active_service_checks b/contrib/eventhandlers/disable_active_service_checks.in
similarity index 93%
rename from contrib/eventhandlers/disable_active_service_checks
rename to contrib/eventhandlers/disable_active_service_checks.in
index c01f2be..b1d0664 100755
--- a/contrib/eventhandlers/disable_active_service_checks
+++ b/contrib/eventhandlers/disable_active_service_checks.in
@@ -16,7 +16,7 @@
 
 printfcmd="/usr/bin/printf"
 
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
+CommandFile="@EXTCMDFILEDIR@/icinga.cmd"
 
 # get the current date/time in seconds since UNIX epoch
 datetime=`date +%s`
diff --git a/contrib/eventhandlers/disable_notifications b/contrib/eventhandlers/disable_notifications.in
similarity index 93%
rename from contrib/eventhandlers/disable_notifications
rename to contrib/eventhandlers/disable_notifications.in
index a92bb7a..eef90c5 100755
--- a/contrib/eventhandlers/disable_notifications
+++ b/contrib/eventhandlers/disable_notifications.in
@@ -14,7 +14,7 @@
 
 printfcmd="/usr/bin/printf"
 
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
+CommandFile="@EXTCMDFILEDIR@/icinga.cmd"
 
 # get the current date/time in seconds since UNIX epoch
 datetime=`date +%s`
diff --git a/contrib/eventhandlers/enable_active_service_checks b/contrib/eventhandlers/enable_active_service_checks.in
similarity index 93%
rename from contrib/eventhandlers/enable_active_service_checks
rename to contrib/eventhandlers/enable_active_service_checks.in
index 423c8d9..6aa8931 100755
--- a/contrib/eventhandlers/enable_active_service_checks
+++ b/contrib/eventhandlers/enable_active_service_checks.in
@@ -16,7 +16,7 @@
 
 printfcmd="/usr/bin/printf"
 
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
+CommandFile="@EXTCMDFILEDIR@/icinga.cmd"
 
 # get the current date/time in seconds since UNIX epoch
 datetime=`date +%s`
diff --git a/contrib/eventhandlers/enable_notifications b/contrib/eventhandlers/enable_notifications.in
similarity index 93%
rename from contrib/eventhandlers/enable_notifications
rename to contrib/eventhandlers/enable_notifications.in
index 0d3f13d..702f8f8 100755
--- a/contrib/eventhandlers/enable_notifications
+++ b/contrib/eventhandlers/enable_notifications.in
@@ -14,7 +14,7 @@
 
 printfcmd="/usr/bin/printf"
 
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
+CommandFile="@EXTCMDFILEDIR@/icinga.cmd"
 
 # get the current date/time in seconds since UNIX epoch
 datetime=`date +%s`





More information about the icinga-checkins mailing list