nagios4/debian/patches/70_fix_eventhandler_paths.patch

130 lines
5.0 KiB
Diff
Raw Normal View History

2014-10-05 11:53:19 +02:00
Author: Alexander Wirt <formorer@debian.org>
Description: Fixes paths for all contributed eventhandlers
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/disable_active_service_checks
===================================================================
--- nagios4.orig/contrib/eventhandlers/disable_active_service_checks
+++ nagios4/contrib/eventhandlers/disable_active_service_checks
2014-10-05 11:53:19 +02:00
@@ -16,7 +16,7 @@
printfcmd="/usr/bin/printf"
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
2017-05-20 00:00:42 +02:00
+CommandFile="/var/lib/nagios4/rw/nagios.cmd"
2014-10-05 11:53:19 +02:00
# get the current date/time in seconds since UNIX epoch
datetime=`date +%s`
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/disable_notifications
===================================================================
--- nagios4.orig/contrib/eventhandlers/disable_notifications
+++ nagios4/contrib/eventhandlers/disable_notifications
2014-10-05 11:53:19 +02:00
@@ -14,7 +14,7 @@
printfcmd="/usr/bin/printf"
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
2017-05-20 00:00:42 +02:00
+CommandFile="/var/lib/nagios4/rw/nagios.cmd"
2014-10-05 11:53:19 +02:00
# get the current date/time in seconds since UNIX epoch
datetime=`date +%s`
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler
===================================================================
--- nagios4.orig/contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler
+++ nagios4/contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler
2014-10-05 11:53:19 +02:00
@@ -21,7 +21,7 @@
#
# Location of the submit_check_result_via_nsca script
-SubmitCmd="/usr/local/nagios/libexec/eventhandlers/submit_check_result_via_nsca"
2017-05-20 00:00:42 +02:00
+SubmitCmd="/usr/share/nagios4/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca"
2014-10-05 11:53:19 +02:00
# Convert the state string to the corresponding return code
return_code=-1
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
===================================================================
--- nagios4.orig/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
+++ nagios4/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
2014-10-05 11:53:19 +02:00
@@ -28,8 +28,8 @@
printfcmd="/usr/bin/printf"
-NscaBin="/usr/local/nagios/libexec/send_nsca"
-NscaCfg="/usr/local/nagios/etc/send_nsca.cfg"
+NscaBin="/usr/sbin/send_nsca"
+NscaCfg="/etc/send_nsca.cfg"
NagiosHost="nagioshost"
# Fire the data off to the NSCA daemon using the send_nsca script
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/enable_active_service_checks
===================================================================
--- nagios4.orig/contrib/eventhandlers/enable_active_service_checks
+++ nagios4/contrib/eventhandlers/enable_active_service_checks
2014-10-05 11:53:19 +02:00
@@ -16,7 +16,7 @@
printfcmd="/usr/bin/printf"
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
2017-05-20 00:00:42 +02:00
+CommandFile="/var/lib/nagios4/rw/nagios.cmd"
2014-10-05 11:53:19 +02:00
# get the current date/time in seconds since UNIX epoch
datetime=`date +%s`
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/enable_notifications
===================================================================
--- nagios4.orig/contrib/eventhandlers/enable_notifications
+++ nagios4/contrib/eventhandlers/enable_notifications
2014-10-05 11:53:19 +02:00
@@ -14,7 +14,7 @@
printfcmd="/usr/bin/printf"
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
2017-05-20 00:00:42 +02:00
+CommandFile="/var/lib/nagios4/rw/nagios.cmd"
2014-10-05 11:53:19 +02:00
# get the current date/time in seconds since UNIX epoch
datetime=`date +%s`
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/redundancy-scenario1/handle-master-host-event
===================================================================
--- nagios4.orig/contrib/eventhandlers/redundancy-scenario1/handle-master-host-event
+++ nagios4/contrib/eventhandlers/redundancy-scenario1/handle-master-host-event
2014-10-05 11:53:19 +02:00
@@ -10,10 +10,10 @@
# Location of the echo and mail commands
echocmd="/bin/echo"
-mailcmd="/bin/mail"
+mailcmd="/usr/bin/mail"
# Location of the event handlers
-eventhandlerdir="/usr/local/nagios/libexec/eventhandlers"
2017-05-20 00:00:42 +02:00
+eventhandlerdir="/usr/share/nagios4/plugins/eventhandlers"
2014-10-05 11:53:19 +02:00
# Only take action on hard host states...
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
===================================================================
--- nagios4.orig/contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
+++ nagios4/contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
2014-10-05 11:53:19 +02:00
@@ -10,10 +10,10 @@
# Location of the echo and mail commands
echocmd="/bin/echo"
-mailcmd="/bin/mail"
+mailcmd="/usr/bin/mail"
# Location of the event handlers
-eventhandlerdir="/usr/local/nagios/libexec/eventhandlers"
2017-05-20 00:00:42 +02:00
+eventhandlerdir="/usr/share/nagios4/plugins/eventhandlers"
2014-10-05 11:53:19 +02:00
# Only take action on hard service states...
2019-08-06 16:12:26 +02:00
Index: nagios4/contrib/eventhandlers/submit_check_result
===================================================================
--- nagios4.orig/contrib/eventhandlers/submit_check_result
+++ nagios4/contrib/eventhandlers/submit_check_result
2014-10-05 11:53:19 +02:00
@@ -24,7 +24,7 @@
echocmd="/bin/echo"
-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
2017-05-20 00:00:42 +02:00
+CommandFile="/var/lib/nagios4/rw/nagios.cmd"
2014-10-05 11:53:19 +02:00
# get the current date/time in seconds since UNIX epoch
datetime=`date +%s`