openwrt-munin-node/plugins.d/upnp

14 lines
236 B
Plaintext
Raw Normal View History

#!/bin/sh
if [ "$1" == "config" ];then
echo "graph_title UPnP Leases
graph_vlabel leases
graph_args -l 0
graph_category network
graph_scale no
leases.label leases"
exit 0
fi
2015-02-19 22:44:42 +00:00
echo "leases.value `cat /tmp/upnp.leases|/usr/bin/wc -l`"