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:
parent
d4b97724e2
commit
717f083de7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user