alpha-quadrant/net-analyzer/nagios-core/files/2.x-series-nsca.patch
2007-07-27 06:17:27 +00:00

19 lines
767 B
Diff

--- contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca.orig 2005-01-28 12:57:11.537852344 +0930
+++ contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca 2005-01-28 12:57:45.877631904 +0930
@@ -28,9 +28,12 @@
printfcmd="/bin/printf"
-NscaBin="/usr/local/nagios/libexec/send_nsca"
-NscaCfg="/usr/local/nagios/etc/send_nsca.cfg"
-NagiosHost="nagioshost"
+NscaBin="/usr/nagios/libexec/send_nsca"
+NscaCfg="/etc/nagios/send_nsca.cfg"
+
+# Gentoo Linux Users: configure the hostname in /etc/conf.d/nagios
+source /etc/conf.d/nagios
+NagiosHost="${NAGIOS_NSCA_HOST}"
# Fire the data off to the NSCA daemon using the send_nsca script
$printfcmd "%s\t%s\t%s\t%s\n" "$1" "$2" "$3" "$4" | $NscaBin $NagiosHost -c $NscaCfg