Only pull the unbound stats you care about
This commit is contained in:
parent
a38c5b0751
commit
c05599ffc8
4
plugins/telegraf_unbound-lite.sh
Normal file
4
plugins/telegraf_unbound-lite.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
HOSTNAME=$(hostname)
|
||||
|
||||
/usr/local/sbin/unbound-control -c /var/unbound/unbound.conf stats | grep -E 'total.num.cachemiss|total.num.cachehits'| xargs printf "unbound-lite,host=$HOSTNAME %s,%s\n"
|
Loading…
x
Reference in New Issue
Block a user