mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +00:00
autodetect ipset
This commit is contained in:
parent
d4b97724e2
commit
717f083de7
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue