mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Gallery: single dirname shall show up as second level heading
This commit is contained in:
parent
4a87dd9cba
commit
abd4092268
22 changed files with 0 additions and 0 deletions
39
plugins/pdns/pdns_rec_querylatency
Executable file
39
plugins/pdns/pdns_rec_querylatency
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# pdns_recursor munin plugin.
|
||||
# Written by Sean Reifschneider <jafo@tummy.com> 2009-12-03
|
||||
# Placed in the public domain
|
||||
#
|
||||
# Requires running as root:
|
||||
#
|
||||
# echo '[pdns_rec_*]' >/etc/munin/plugin-conf.d/pdns_rec
|
||||
# echo 'user root' >>/etc/munin/plugin-conf.d/pdns_rec
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -e /usr/bin/rec_control ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
else
|
||||
echo no
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_title PDNS Recursor Answer Latency'
|
||||
echo 'graph_order latency'
|
||||
echo 'graph_vlabel ms'
|
||||
echo 'graph_info Question latency'
|
||||
echo 'graph_category dns'
|
||||
|
||||
echo 'latency.label ms'
|
||||
echo 'latency.min 0'
|
||||
echo 'latency.type GAUGE'
|
||||
echo 'latency.info Answer latency'
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo latency.value `rec_control get qa-latency`
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue