diff --git a/plugins/inputs/system/linux_sysctl_fs.go b/plugins/inputs/system/linux_sysctl_fs.go
index add17e9ae7e370e5311f8820fa4ef8296508b275..55ebcb668d1f1c2f6a195ba2e03a24ed3987d03d 100644
--- a/plugins/inputs/system/linux_sysctl_fs.go
+++ b/plugins/inputs/system/linux_sysctl_fs.go
@@ -3,11 +3,13 @@ package system
 import (
 	"bytes"
 	"io/ioutil"
+	"os"
 	"strconv"
 
+	"path"
+
 	"github.com/influxdata/telegraf"
 	"github.com/influxdata/telegraf/plugins/inputs"
-	"path"
 )
 
 // https://www.kernel.org/doc/Documentation/sysctl/fs.txt
@@ -80,6 +82,14 @@ func (sfs *SysctlFS) Gather(acc telegraf.Accumulator) error {
 	return nil
 }
 
+func GetHostProc() string {
+	procPath := "/proc"
+	if os.Getenv("HOST_PROC") != "" {
+		procPath = os.Getenv("HOST_PROC")
+	}
+	return procPath
+}
+
 func init() {
 
 	inputs.Add("linux_sysctl_fs", func() telegraf.Input {
diff --git a/plugins/inputs/system/processes.go b/plugins/inputs/system/processes.go
index 68796fed6321e9ecdef2e1bfc5e92cf233604475..1ceb4fb2dccf4b08844325e7ffe683ee582ad59f 100644
--- a/plugins/inputs/system/processes.go
+++ b/plugins/inputs/system/processes.go
@@ -20,7 +20,6 @@ import (
 
 type Processes struct {
 	execPS       func() ([]byte, error)
-	getHostProc  func() string
 	readProcFile func(filename string) ([]byte, error)
 
 	forcePS   bool
@@ -63,14 +62,6 @@ func (p *Processes) Gather(acc telegraf.Accumulator) error {
 	return nil
 }
 
-func GetHostProc() string {
-	procPath := "/proc"
-	if os.Getenv("HOST_PROC") != "" {
-		procPath = os.Getenv("HOST_PROC")
-	}
-	return procPath
-}
-
 // Gets empty fields of metrics based on the OS
 func getEmptyFields() map[string]interface{} {
 	fields := map[string]interface{}{