From c3e4adb12874dd2ed1b14fdb2cc43fb667ab8742 Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Sat, 15 Dec 2007 12:27:19 +0100 Subject: [PATCH] Initial version --- plugins/other/tinydns_err | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100755 plugins/other/tinydns_err diff --git a/plugins/other/tinydns_err b/plugins/other/tinydns_err new file mode 100755 index 00000000..29b864bc --- /dev/null +++ b/plugins/other/tinydns_err @@ -0,0 +1,61 @@ +#!/bin/sh +# +# Shows DNS query statistics as gathered by tinystats by Luca Morettoni. +# +# Parameters: +# +# config (required) +# autoconf (optional - used by munin-config) +# +#%# family=auto +#%# capabilities=autoconf + + +if [ "$1" = "autoconf" ]; then + if [ -f "/var/service/tinydns/log/main/tinystats.out" ]; then + echo yes; + else + echo no; + fi + exit 0; +fi + +if [ "$1" = "config" ]; then + + cat - <