Projet

Général

Profil

Révision d79ab66b

IDd79ab66b69029ed1a45c9a1bd222bafc5412d02c
Parent c41c5666
Enfant b4d9f328

Ajouté par Dave Fennell il y a presque 13 ans

Updated new bind9 plugins with license information and added MUNIN_CAP_DIRTYCONFIG support.

Voir les différences:

plugins/network/dns/bind9_socket_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
......
67 67
		echo ${key}.type COUNTER
68 68
	done
69 69

  
70
	exit 0
70
        # If dirty config capability is enabled then fall through
71
        # to output the data with the config information.
72
        if [ "$MUNIN_CAP_DIRTYCONFIG" = "" ]; then
73
                exit 0
74
        fi
71 75
fi
72 76

  
73
# Blank the stats file (else stats are appended not replaced)
74
rm ${stat_file}
75

  
76
# Ask to bind to build new one
77
${rndc} stats
78

  
79 77
# Output the stats.
80 78
eval ${cmd} | while read num name
81 79
do

Formats disponibles : Unified diff