1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Configurable env binary path (#318)

This commit is contained in:
SourceDoctor
2020-07-04 17:44:40 +02:00
committed by GitHub
parent a6f943fc83
commit 90c00c78d0

View File

@@ -10,14 +10,24 @@
# If you are unsure, which to set, run this script and make sure that # If you are unsure, which to set, run this script and make sure that
# the JSON output variables match that in "ntpq -c rv". # the JSON output variables match that in "ntpq -c rv".
# #
BIN_NTPD='/usr/bin/env ntpd'
BIN_NTPQ='/usr/bin/env ntpq' CONFIGFILE=/etc/snmp/ntp-server.conf
BIN_NTPDC='/usr/bin/env ntpdc'
BIN_GREP='/usr/bin/env grep' BIN_ENV='/usr/bin/env'
BIN_TR='/usr/bin/env tr'
BIN_CUT='/usr/bin/env cut' if [ -f $CONFIGFILE ] ; then
BIN_SED="/usr/bin/env sed" . $CONFIGFILE
BIN_AWK='/usr/bin/env awk' fi
BIN_NTPD="$BIN_ENV ntpd"
BIN_NTPQ="$BIN_ENV ntpq"
BIN_NTPDC="$BIN_ENV ntpdc"
BIN_GREP="$BIN_ENV grep"
BIN_TR="$BIN_ENV tr"
BIN_CUT="$BIN_ENV cut"
BIN_SED="$BIN_ENV sed"
BIN_AWK="$BIN_ENV awk"
NTPQV="p11" NTPQV="p11"
################################################################ ################################################################
# Don't change anything unless you know what are you doing # # Don't change anything unless you know what are you doing #