diff --git a/Makefile b/Makefile
index d80ec37..a1b4196 100644
--- a/Makefile
+++ b/Makefile
@@ -79,11 +79,11 @@ build-linux32: ## Build sidecar binary for Linux 32bit
build-darwin: ## Build sidecar binary for OSX
@mkdir -p build/$(COLLECTOR_VERSION)/darwin/amd64
- GOOS=darwin GOARCH=amd64 $(GO) build $(BUILD_OPTS) -v -i -o build/$(COLLECTOR_VERSION)/darwin/amd64/graylog-sidecar
+ GOOS=darwin GOARCH=amd64 $(GO) build $(BUILD_OPTS) -pkgdir $(GOPATH)/go_darwin -v -i -o build/$(COLLECTOR_VERSION)/darwin/amd64/graylog-sidecar
build-freebsd:
@mkdir -p build/$(COLLECTOR_VERSION)/freebsd/amd64
- GOOS=freebsd GOARCH=amd64 $(GO) build $(BUILD_OPTS) -v -i -o build/$(COLLECTOR_VERSION)/freebsd/amd64/graylog-sidecar
+ GOOS=freebsd GOARCH=amd64 $(GO) build $(BUILD_OPTS) -pkgdir $(GOPATH)/go_freebsd -v -i -o build/$(COLLECTOR_VERSION)/freebsd/amd64/graylog-sidecar
build-windows: ## Build sidecar binary for Windows
@mkdir -p build/$(COLLECTOR_VERSION)/windows/amd64
diff --git a/common/sigar.go b/common/sigar.go
index b75c623..de3be5a 100644
--- a/common/sigar.go
+++ b/common/sigar.go
@@ -13,6 +13,8 @@
// You should have received a copy of the GNU General Public License
// along with Graylog. If not, see .
+// +build !freebsd,!darwin
+
package common
import (
diff --git a/common/sigar_darwin.go b/common/sigar_darwin.go
new file mode 100644
index 0000000..01f8f3b
--- /dev/null
+++ b/common/sigar_darwin.go
@@ -0,0 +1,28 @@
+// This file is part of Graylog.
+//
+// Graylog is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Graylog is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Graylog. If not, see .
+
+package common
+
+func GetCpuIdle() float64 {
+ return -1
+}
+
+func GetFileSystemList75() []string {
+ return []string{}
+}
+
+func GetLoad1() float64 {
+ return -1
+}
diff --git a/common/sigar_freebsd.go b/common/sigar_freebsd.go
new file mode 100644
index 0000000..01f8f3b
--- /dev/null
+++ b/common/sigar_freebsd.go
@@ -0,0 +1,28 @@
+// This file is part of Graylog.
+//
+// Graylog is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Graylog is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Graylog. If not, see .
+
+package common
+
+func GetCpuIdle() float64 {
+ return -1
+}
+
+func GetFileSystemList75() []string {
+ return []string{}
+}
+
+func GetLoad1() float64 {
+ return -1
+}