Only pull the unbound stats you care about

This commit is contained in:
Victor Robellini 2021-03-06 15:10:18 -05:00
parent a38c5b0751
commit c05599ffc8

View 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"