Révision a86de787
Use exit status 0 for autoconf, provide reason for 'no' answer.
| plugins/pdns/pdns_rec_outqueries | ||
|---|---|---|
| 9 | 9 |
# echo '[pdns_rec_*]' >/etc/munin/plugin-conf.d/pdns_rec |
| 10 | 10 |
# echo 'user root' >>/etc/munin/plugin-conf.d/pdns_rec |
| 11 | 11 |
|
| 12 |
rec_control="/usr/bin/rec_control" |
|
| 13 |
|
|
| 12 | 14 |
if [ "$1" = "autoconf" ]; then |
| 13 |
if [ -e /usr/bin/rec_control ]; then
|
|
| 15 |
if [ -e "$rec_control" ]; then
|
|
| 14 | 16 |
echo yes |
| 15 | 17 |
exit 0 |
| 16 | 18 |
else |
| 17 |
echo no
|
|
| 18 |
exit 1
|
|
| 19 |
echo "no (missing $rec_control)"
|
|
| 20 |
exit 0
|
|
| 19 | 21 |
fi |
| 20 | 22 |
fi |
| 21 | 23 |
|
| ... | ... | |
| 41 | 43 |
exit 0 |
| 42 | 44 |
fi |
| 43 | 45 |
|
| 44 |
echo all.value "$(rec_control get all-outqueries)" |
|
| 45 |
echo tcp.value "$(rec_control get tcp-outqueries)" |
|
| 46 |
echo all.value "$($rec_control get all-outqueries)"
|
|
| 47 |
echo tcp.value "$($rec_control get tcp-outqueries)"
|
|
| 46 | 48 |
|
| 47 | 49 |
exit 0 |
Formats disponibles : Unified diff