Actually make if_packets_ work.
PR: 194733 Submitted by: Claudius Herder Sponsored by: Absolight
This commit is contained in:
parent
16ea357e9b
commit
a16b93afdc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372693
2 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= munin
|
||||
PORTVERSION= ${MUNIN_VERSION}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils perl5
|
||||
MASTER_SITES= ${MUNIN_SITES}
|
||||
PKGNAMESUFFIX= -node
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
+# -*- sh -*-
|
||||
+#
|
||||
+# Wildcard-plugin to monitor network interfaces. To monitor an
|
||||
+# interface, link if_<interface> to this file. E.g.
|
||||
+# interface, link if_packets_<interface> to this file. E.g.
|
||||
+#
|
||||
+# ln -s /usr/share/munin/node/plugins-auto/if_ /etc/munin/node.d/if_eth0
|
||||
+# ln -s /usr/share/munin/node/plugins-auto/if_packets_ /etc/munin/node.d/if_packets_eth0
|
||||
+#
|
||||
+# ...will monitor eth0.
|
||||
+#
|
||||
+# To aggregate all network interfaces on the system (except lo0),
|
||||
+# link if_aggregated to this file.
|
||||
+# link if_packets_aggregated to this file.
|
||||
+#
|
||||
+# Any device found in /usr/bin/netstat can be monitored.
|
||||
+#
|
||||
|
@ -22,7 +22,7 @@
|
|||
+#%# family=auto
|
||||
+#%# capabilities=autoconf suggest
|
||||
+
|
||||
+INTERFACE=${0##*if_}
|
||||
+INTERFACE=${0##*if_packets_}
|
||||
+
|
||||
+if [ "$1" = "autoconf" ]; then
|
||||
+ if [ -x /sbin/ifconfig -o -x /usr/bin/netstat ]; then
|
||||
|
|
Loading…
Reference in a new issue