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:
parent
f9426daca5
commit
a86de7871a
16 changed files with 107 additions and 80 deletions
|
@ -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 concurrent.value "$(rec_control get concurrent-queries)"
|
||||
echo concurrent.value "$($rec_control get concurrent-queries)"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue