Created
October 8, 2012 21:21
-
-
Save kyle-johnson/3855058 to your computer and use it in GitHub Desktop.
Munin DNSMasq Stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case $1 in | |
config) | |
cat <<'EOM' | |
graph_title DHCP Leases | |
graph_vlabel leases | |
graph_args -l 0 | |
graph_category DNSMasq | |
graph_scale no | |
leases.label leases | |
EOM | |
exit 0;; | |
esac | |
echo -n "leases.value " | |
wc -l /var/lib/misc/dnsmasq.leases | cut -d' ' -f1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment