Révision a86de787
Use exit status 0 for autoconf, provide reason for 'no' answer.
| plugins/pdns/pdns_rec_querylatency | ||
|---|---|---|
| 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 |
|
| ... | ... | |
| 34 | 36 |
exit 0 |
| 35 | 37 |
fi |
| 36 | 38 |
|
| 37 |
echo latency.value "$(rec_control get qa-latency)" |
|
| 39 |
echo latency.value "$($rec_control get qa-latency)"
|
|
| 38 | 40 |
|
| 39 | 41 |
exit 0 |
Formats disponibles : Unified diff