1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Use exit status 0 for autoconf, provide reason for 'no' answer.

This commit is contained in:
Bas Couwenberg 2017-09-29 10:20:40 +02:00
parent f9426daca5
commit a86de7871a
16 changed files with 107 additions and 80 deletions

View file

@ -9,13 +9,15 @@
# echo '[pdns_rec_*]' >/etc/munin/plugin-conf.d/pdns_rec
# echo 'user root' >>/etc/munin/plugin-conf.d/pdns_rec
rec_control="/usr/bin/rec_control"
if [ "$1" = "autoconf" ]; then
if [ -e /usr/bin/rec_control ]; then
if [ -e "$rec_control" ]; then
echo yes
exit 0
else
echo no
exit 1
echo "no (missing $rec_control)"
exit 0
fi
fi
@ -34,6 +36,6 @@ if [ "$1" = "config" ]; then
exit 0
fi
echo latency.value "$(rec_control get qa-latency)"
echo latency.value "$($rec_control get qa-latency)"
exit 0