mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-02 14:18:21 +00:00
Initial version
This commit is contained in:
parent
6183f6996f
commit
e981659ff2
1 changed files with 39 additions and 0 deletions
39
plugins/other/pdns_rec_throttle
Executable file
39
plugins/other/pdns_rec_throttle
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 Throttling'
|
||||||
|
echo 'graph_order throttled
|
||||||
|
echo 'graph_vlabel queries'
|
||||||
|
echo 'graph_info Throttled queries'
|
||||||
|
echo 'graph_category pdns'
|
||||||
|
|
||||||
|
echo 'throttled.label throttled'
|
||||||
|
echo 'throttled.min 0'
|
||||||
|
echo 'throttled.type COUNTER'
|
||||||
|
echo 'throttled.info Throttled queries'
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo throttled.value `rec_control get throttled-out'
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue