aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-04-09 14:44:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-04-09 14:44:29 +1200
commitd4b245001a1bc418165d3dfbf08172ea632b3c0e (patch)
tree73d1b3df37a42b7a1fab508e2ce4de90418ce4dc
parentRemove debugging code accidentally left in here (diff)
downloadnscaw-d4b245001a1bc418165d3dfbf08172ea632b3c0e.tar.gz
nscaw-d4b245001a1bc418165d3dfbf08172ea632b3c0e.zip
Specify config file for send_nsca.cfg
-rwxr-xr-xnscaw3
1 files changed, 2 insertions, 1 deletions
diff --git a/nscaw b/nscaw
index bcd4e3c..d2ed64d 100755
--- a/nscaw
+++ b/nscaw
@@ -86,5 +86,6 @@ esac
# stdout of send_nsca as it's just a diagnostic message
printf '%s\t%s\t%u\t%s\n' \
"$hostname" "$service" "$code" "$message" |
- send_nsca -H "${NSCAW_SERVER:?}" >/dev/null
+ send_nsca -H "${NSCAW_SERVER:?}" \
+ -c "${NSCAW_CONFIG:-/etc/send_nsca.cfg}" >/dev/null