From d5bdf2dfb1e1a33bb6772f2a63186423249e080e Mon Sep 17 00:00:00 2001 From: Jan Behrend Date: Tue, 22 May 2007 09:38:40 +0200 Subject: [PATCH] Initial version --- plugins/other/pdns_qsize | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 plugins/other/pdns_qsize diff --git a/plugins/other/pdns_qsize b/plugins/other/pdns_qsize new file mode 100755 index 00000000..d818fea8 --- /dev/null +++ b/plugins/other/pdns_qsize @@ -0,0 +1,35 @@ +#!/bin/bash +# +# Script to monitor PowerDNS performance +# +# Parameters understood: +# +# config (required) +# autoconf (optional - used by munin-config) +#%# family=auto +#%# capabilities=autoconf + +command="/etc/init.d/pdns show" + +if [ "$1" = "autoconf" ]; then + echo yes + exit 0 +fi + +if [ "$1" = "config" ]; then + echo 'graph_title Power DNS database queue' + echo 'graph_args -l 0' + echo 'graph_vlabel number of waiting queries' + echo 'graph_category Power DNS' + echo 'graph_info This graph shows Power DNS database performance on the machine.' + echo 'qsize.label qsize' + echo 'qsize.info Number of questions waiting for database attention' + echo 'qsize.type GAUGE' + exit 0 +fi + + + + +echo "qsize.value $($command qsize_q | awk -F= '{print $2}')" +