From 9133f75cb0dc678c39383983f79883fc606791b9 Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio" Date: Tue, 6 Jun 2017 00:47:24 +0000 Subject: Repocopy from net-mgmt/cacti (r416066) -> net-mgmt/cacti88 Web-driven graphing interface for RRDTool (Old version of net-mgmt/cacti) New releases of Cacti are still unable to work with useful plugins like "GPS Map" and "Network Weathermap". While here, minor fixes and get improvements from the current port. PR: 219685 Submitted by: Vinicius Zavam Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D11023 --- net-mgmt/cacti88/files/patch-scripts__diskfree.pl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 net-mgmt/cacti88/files/patch-scripts__diskfree.pl (limited to 'net-mgmt/cacti88/files/patch-scripts__diskfree.pl') diff --git a/net-mgmt/cacti88/files/patch-scripts__diskfree.pl b/net-mgmt/cacti88/files/patch-scripts__diskfree.pl new file mode 100644 index 000000000000..9e8517401141 --- /dev/null +++ b/net-mgmt/cacti88/files/patch-scripts__diskfree.pl @@ -0,0 +1,9 @@ +--- scripts/diskfree.pl.orig 2017-06-01 00:09:48 UTC ++++ scripts/diskfree.pl +@@ -1,5 +1,5 @@ + #!/usr/local/bin/perl +-open(PROCESS,"df --block-size=1024 -P $ARGV[0] | grep -v Filesystem |"); ++open(PROCESS,"df -k $ARGV[0] | grep -v Filesystem |"); + foreach () { + if ($_ =~ /($ARGV[0])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])%(.* )/) { + print "megabytes:$7 percent:$9"; -- cgit v1.2.3