nagios4/debian/patches/70_fix_eventhandler_paths.patch

112 lines
3.6 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
--- a/contrib/eventhandlers/disable_active_service_checks
+++ b/contrib/eventhandlers/disable_active_service_checks
@@ -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`
--- a/contrib/eventhandlers/disable_notifications
+++ b/contrib/eventhandlers/disable_notifications
@@ -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`
--- a/contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler
+++ b/contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler
@@ -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
--- a/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
+++ b/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
@@ -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
--- a/contrib/eventhandlers/enable_active_service_checks
+++ b/contrib/eventhandlers/enable_active_service_checks
@@ -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`
--- a/contrib/eventhandlers/enable_notifications
+++ b/contrib/eventhandlers/enable_notifications
@@ -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`
--- a/contrib/eventhandlers/redundancy-scenario1/handle-master-host-event
+++ b/contrib/eventhandlers/redundancy-scenario1/handle-master-host-event
@@ -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...
--- a/contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
+++ b/contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
@@ -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...
--- a/contrib/eventhandlers/submit_check_result
+++ b/contrib/eventhandlers/submit_check_result
@@ -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`