Révision d79ab66b
Updated new bind9 plugins with license information and added MUNIN_CAP_DIRTYCONFIG support.
| plugins/network/dns/bind9_resolver_stats | ||
|---|---|---|
| 8 | 8 |
# Created: |
| 9 | 9 |
# 20th December 2012 |
| 10 | 10 |
# |
| 11 |
# License: |
|
| 12 |
# GPL-2 |
|
| 13 |
# |
|
| 11 | 14 |
# Usage: |
| 12 | 15 |
# Place in /etc/munin/plugins/ (or link it there using ln -s) |
| 13 | 16 |
# |
| 14 |
# Parameters: |
|
| 15 |
# config (required) |
|
| 16 |
# |
|
| 17 | 17 |
|
| 18 | 18 |
# change those to reflect your bind configuration (use plugin configuration) |
| 19 | 19 |
# stat file |
| ... | ... | |
| 49 | 49 |
echo 'graph_info '${section}' for the Bind9 Name Server'
|
| 50 | 50 |
echo 'graph_scale no' |
| 51 | 51 |
echo 'graph_title Bind9 '${section}
|
| 52 |
echo 'graph_vlabel requests/sec'
|
|
| 52 |
echo 'graph_vlabel requests/${graph_period}'
|
|
| 53 | 53 |
|
| 54 | 54 |
# Output the stat configs. |
| 55 | 55 |
eval ${cmd} | while read num name
|
| ... | ... | |
| 70 | 70 |
echo ${key}.type COUNTER
|
| 71 | 71 |
done |
| 72 | 72 |
|
| 73 |
exit 0 |
|
| 73 |
# If dirty config capability is enabled then fall through |
|
| 74 |
# to output the data with the config information. |
|
| 75 |
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then |
|
| 76 |
exit 0 |
|
| 77 |
fi |
|
| 74 | 78 |
fi |
| 75 | 79 |
|
| 76 | 80 |
# Output the stats. |
Formats disponibles : Unified diff