Skip to content

Instantly share code, notes, and snippets.

@kyle-johnson
Created October 8, 2012 21:21
Show Gist options
  • Save kyle-johnson/3855058 to your computer and use it in GitHub Desktop.
Save kyle-johnson/3855058 to your computer and use it in GitHub Desktop.
Munin DNSMasq Stats
#!/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