2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

autodetect ipset

This commit is contained in:
Tomas Mudrunka 2016-08-01 16:58:20 +02:00
parent d4b97724e2
commit 717f083de7

View File

@ -4,7 +4,14 @@
#
#Add this line to sudoers:
#ALL ALL = (root) NOPASSWD: /sbin/ipset list [!-]*, /sbin/ipset list -n
#
#%# family=auto
#%# capabilities=autoconf
[ "$1" = "autoconf" ] && {
[ -e /sbin/ipset -o -n "$(which ipset)" ] && echo 'yes' || echo 'no (ipset binary not present)'
exit 0
}
[ "$1" = "config" ] && {
echo graph_title Netfilter IPSets