mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Updated new bind9 plugins with license information and added MUNIN_CAP_DIRTYCONFIG support.
This commit is contained in:
parent
c41c5666a1
commit
d79ab66b69
3 changed files with 27 additions and 21 deletions
|
@ -8,12 +8,12 @@
|
||||||
# Created:
|
# Created:
|
||||||
# 20th December 2012
|
# 20th December 2012
|
||||||
#
|
#
|
||||||
|
# License:
|
||||||
|
# GPL-2
|
||||||
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# Place in /etc/munin/plugins/ (or link it there using ln -s)
|
# 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)
|
# change those to reflect your bind configuration (use plugin configuration)
|
||||||
# stat file
|
# stat file
|
||||||
|
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo 'graph_info '${section}' for the Bind9 Name Server'
|
echo 'graph_info '${section}' for the Bind9 Name Server'
|
||||||
echo 'graph_scale no'
|
echo 'graph_scale no'
|
||||||
echo 'graph_title Bind9 '${section}
|
echo 'graph_title Bind9 '${section}
|
||||||
echo 'graph_vlabel requests/sec'
|
echo 'graph_vlabel requests/${graph_period}'
|
||||||
|
|
||||||
# Output the stat configs.
|
# Output the stat configs.
|
||||||
eval ${cmd} | while read num name
|
eval ${cmd} | while read num name
|
||||||
|
@ -70,7 +70,11 @@ if [ "$1" = "config" ]; then
|
||||||
echo ${key}.type COUNTER
|
echo ${key}.type COUNTER
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
# 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
|
fi
|
||||||
|
|
||||||
# Output the stats.
|
# Output the stats.
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
# Created:
|
# Created:
|
||||||
# 20th December 2012
|
# 20th December 2012
|
||||||
#
|
#
|
||||||
|
# License:
|
||||||
|
# GPL-2
|
||||||
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# Place in /etc/munin/plugins/ (or link it there using ln -s)
|
# 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)
|
# change those to reflect your bind configuration (use plugin configuration)
|
||||||
# stat file
|
# stat file
|
||||||
|
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo 'graph_info '${section}' for the Bind9 Name Server'
|
echo 'graph_info '${section}' for the Bind9 Name Server'
|
||||||
echo 'graph_scale no'
|
echo 'graph_scale no'
|
||||||
echo 'graph_title Bind9 '${section}
|
echo 'graph_title Bind9 '${section}
|
||||||
echo 'graph_vlabel requests/sec'
|
echo 'graph_vlabel requests/${graph_period}'
|
||||||
|
|
||||||
# Output the stat configs.
|
# Output the stat configs.
|
||||||
eval ${cmd} | while read num name
|
eval ${cmd} | while read num name
|
||||||
|
@ -69,7 +69,11 @@ if [ "$1" = "config" ]; then
|
||||||
echo ${key}.type COUNTER
|
echo ${key}.type COUNTER
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
# 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
|
fi
|
||||||
|
|
||||||
# Output the stats.
|
# Output the stats.
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
# Created:
|
# Created:
|
||||||
# 20th December 2012
|
# 20th December 2012
|
||||||
#
|
#
|
||||||
|
# License:
|
||||||
|
# GPL-2
|
||||||
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# Place in /etc/munin/plugins/ (or link it there using ln -s)
|
# 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)
|
# change those to reflect your bind configuration (use plugin configuration)
|
||||||
# stat file
|
# stat file
|
||||||
|
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo 'graph_info '${section}' for the Bind9 Name Server'
|
echo 'graph_info '${section}' for the Bind9 Name Server'
|
||||||
echo 'graph_scale no'
|
echo 'graph_scale no'
|
||||||
echo 'graph_title Bind9 '${section}
|
echo 'graph_title Bind9 '${section}
|
||||||
echo 'graph_vlabel requests/sec'
|
echo 'graph_vlabel requests/${graph_period}'
|
||||||
|
|
||||||
# Output the stat configs.
|
# Output the stat configs.
|
||||||
eval ${cmd} | while read num name
|
eval ${cmd} | while read num name
|
||||||
|
@ -67,15 +67,13 @@ if [ "$1" = "config" ]; then
|
||||||
echo ${key}.type COUNTER
|
echo ${key}.type COUNTER
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
# 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
|
fi
|
||||||
|
|
||||||
# Blank the stats file (else stats are appended not replaced)
|
|
||||||
rm ${stat_file}
|
|
||||||
|
|
||||||
# Ask to bind to build new one
|
|
||||||
${rndc} stats
|
|
||||||
|
|
||||||
# Output the stats.
|
# Output the stats.
|
||||||
eval ${cmd} | while read num name
|
eval ${cmd} | while read num name
|
||||||
do
|
do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue