blob: faae90c485978a30a09a9af29fa802fdc498ac9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- 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
|