freebsd-ports/sysutils/munin-node/files/patch-netstat.in
Dag-Erling Smørgrav f44b4d9a88 Update to 1.2.6.
PR:		ports/126371
Submitted by:	Matthias Fechner <idefix@fechner.net>, Lupe Christoph <lupe@lupe-christoph.de>
2008-09-03 13:27:50 +00:00

18 lines
921 B
Text

--- node/node.d.freebsd/netstat.in.orig 2006-11-02 15:15:57.000000000 +0100
+++ node/node.d.freebsd/netstat.in 2008-08-17 14:01:14.000000000 +0200
@@ -45,7 +45,7 @@
if [ "$1" = "autoconf" ]; then
- if ( /bin/netstat -s 2>/dev/null >/dev/null ); then
+ if ( /usr/bin/netstat -s 2>/dev/null >/dev/null ); then
echo yes
exit 0
else
@@ -96,5 +96,5 @@
exit 0
fi
-/bin/netstat -s | awk '/connection requests/ { print "active.value " $1 } /connection accepts/ { print "passive.value " $1 } /bad connection/ { print "failed.value " $1 } /reset/ { print "resets.value " $1 } /connections established/ { print "established.value " $1 }'
+/usr/bin/netstat -s | awk '/connection requests/ { print "active.value " $1 } /connection accepts/ { print "passive.value " $1 } /bad connection/ { print "failed.value " $1 } /reset/ { print "resets.value " $1 } /connections established/ { print "established.value " $1 }'