mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +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
|
||||
|
||||
|
@ -65,11 +67,11 @@ if [ "$1" = "config" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
echo a.value "$(rec_control get answers0-1)"
|
||||
echo b.value "$(rec_control get answers1-10)"
|
||||
echo c.value "$(rec_control get answers10-100)"
|
||||
echo d.value "$(rec_control get answers100-1000)"
|
||||
echo e.value "$(rec_control get answers-slow)"
|
||||
echo f.value "$(rec_control get outgoing-timeouts)"
|
||||
echo a.value "$($rec_control get answers0-1)"
|
||||
echo b.value "$($rec_control get answers1-10)"
|
||||
echo c.value "$($rec_control get answers10-100)"
|
||||
echo d.value "$($rec_control get answers100-1000)"
|
||||
echo e.value "$($rec_control get answers-slow)"
|
||||
echo f.value "$($rec_control get outgoing-timeouts)"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue