mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Updated new bind9 plugins with license information and added MUNIN_CAP_DIRTYCONFIG support.
This commit is contained in:
parent
c41c5666a1
commit
d79ab66b69
@ -8,12 +8,12 @@
|
||||
# Created:
|
||||
# 20th December 2012
|
||||
#
|
||||
# License:
|
||||
# GPL-2
|
||||
#
|
||||
# Usage:
|
||||
# Place in /etc/munin/plugins/ (or link it there using ln -s)
|
||||
#
|
||||
# Parameters:
|
||||
# config (required)
|
||||
#
|
||||
|
||||
# change those to reflect your bind configuration (use plugin configuration)
|
||||
# stat file
|
||||
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||
echo 'graph_info '${section}' for the Bind9 Name Server'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title Bind9 '${section}
|
||||
echo 'graph_vlabel requests/sec'
|
||||
echo 'graph_vlabel requests/${graph_period}'
|
||||
|
||||
# Output the stat configs.
|
||||
eval ${cmd} | while read num name
|
||||
@ -70,8 +70,12 @@ if [ "$1" = "config" ]; then
|
||||
echo ${key}.type COUNTER
|
||||
done
|
||||
|
||||
# If dirty config capability is enabled then fall through
|
||||
# to output the data with the config information.
|
||||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Output the stats.
|
||||
eval ${cmd} | while read num name
|
||||
|
@ -8,12 +8,12 @@
|
||||
# Created:
|
||||
# 20th December 2012
|
||||
#
|
||||
# License:
|
||||
# GPL-2
|
||||
#
|
||||
# Usage:
|
||||
# Place in /etc/munin/plugins/ (or link it there using ln -s)
|
||||
#
|
||||
# Parameters:
|
||||
# config (required)
|
||||
#
|
||||
|
||||
# change those to reflect your bind configuration (use plugin configuration)
|
||||
# stat file
|
||||
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||
echo 'graph_info '${section}' for the Bind9 Name Server'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title Bind9 '${section}
|
||||
echo 'graph_vlabel requests/sec'
|
||||
echo 'graph_vlabel requests/${graph_period}'
|
||||
|
||||
# Output the stat configs.
|
||||
eval ${cmd} | while read num name
|
||||
@ -69,8 +69,12 @@ if [ "$1" = "config" ]; then
|
||||
echo ${key}.type COUNTER
|
||||
done
|
||||
|
||||
# If dirty config capability is enabled then fall through
|
||||
# to output the data with the config information.
|
||||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Output the stats.
|
||||
eval ${cmd} | while read num name
|
||||
|
@ -8,12 +8,12 @@
|
||||
# Created:
|
||||
# 20th December 2012
|
||||
#
|
||||
# License:
|
||||
# GPL-2
|
||||
#
|
||||
# Usage:
|
||||
# Place in /etc/munin/plugins/ (or link it there using ln -s)
|
||||
#
|
||||
# Parameters:
|
||||
# config (required)
|
||||
#
|
||||
|
||||
# change those to reflect your bind configuration (use plugin configuration)
|
||||
# stat file
|
||||
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||
echo 'graph_info '${section}' for the Bind9 Name Server'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title Bind9 '${section}
|
||||
echo 'graph_vlabel requests/sec'
|
||||
echo 'graph_vlabel requests/${graph_period}'
|
||||
|
||||
# Output the stat configs.
|
||||
eval ${cmd} | while read num name
|
||||
@ -67,14 +67,12 @@ if [ "$1" = "config" ]; then
|
||||
echo ${key}.type COUNTER
|
||||
done
|
||||
|
||||
# If dirty config capability is enabled then fall through
|
||||
# to output the data with the config information.
|
||||
if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Blank the stats file (else stats are appended not replaced)
|
||||
rm ${stat_file}
|
||||
|
||||
# Ask to bind to build new one
|
||||
${rndc} stats
|
||||
fi
|
||||
|
||||
# Output the stats.
|
||||
eval ${cmd} | while read num name
|
||||
|
Loading…
Reference in New Issue
Block a user