Skip to content

Commit

Permalink
🚸 don't use full path for binaries because they're in the PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmerz committed Feb 22, 2024
1 parent a586156 commit 45d9850
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 01_dnsping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

cd ~/dev/dnspingtest_rrd/ || exit 1

PING=/usr/bin/dnsping
PING=dnsping
COUNT=4 # higher count = smoother / finer "loss" scale; lower count = less caching effects
DEADLINE=1 # even 1s (1000ms) is much too long to wait for!
tcp=
Expand Down Expand Up @@ -83,7 +83,7 @@ for resolver in $resolverlist; do
fi
# create rrd-file from scratch if not existing:
if ! [ -f data/dnsping_"${resolver}".rrd ]; then
/usr/bin/rrdtool create data/dnsping_"${resolver}".rrd \
rrdtool create data/dnsping_"${resolver}".rrd \
--step 60 \
DS:pl:GAUGE:600:0:100 \
DS:rtt:GAUGE:600:0:10000000 \
Expand All @@ -99,7 +99,7 @@ for resolver in $resolverlist; do
# do the dnsping:
dnsping_host "$resolver"
# and update rrd:
/usr/bin/rrdtool update \
rrdtool update \
data/dnsping_"$resolver".rrd \
--template \
pl:rtt \
Expand Down

0 comments on commit 45d9850

Please sign in to comment.