diff --git a/plugins/inputs/ras/README.md b/plugins/inputs/ras/README.md index 8d89cf385..9c1cda75b 100644 --- a/plugins/inputs/ras/README.md +++ b/plugins/inputs/ras/README.md @@ -1,6 +1,6 @@ # RAS Daemon Input Plugin -This plugin is only available on Linux. +This plugin is only available on Linux (only for `386`, `amd64`, `arm` and `arm64` architectures). The `RAS` plugin gathers and counts errors provided by [RASDaemon](https://github.com/mchehab/rasdaemon). diff --git a/plugins/inputs/ras/ras.go b/plugins/inputs/ras/ras.go index 630e712d8..a8599c4a7 100644 --- a/plugins/inputs/ras/ras.go +++ b/plugins/inputs/ras/ras.go @@ -1,4 +1,5 @@ -// +build linux,!mips,!mipsle,!s390x +// +build linux +// +build 386 amd64 arm arm64 package ras diff --git a/plugins/inputs/ras/ras_notlinux.go b/plugins/inputs/ras/ras_notlinux.go index b529a4b64..74f0aaf9f 100644 --- a/plugins/inputs/ras/ras_notlinux.go +++ b/plugins/inputs/ras/ras_notlinux.go @@ -1,3 +1,3 @@ -// +build !linux mips mipsle s390x +// +build !linux linux,!386,!amd64,!arm,!arm64 package ras diff --git a/plugins/inputs/ras/ras_test.go b/plugins/inputs/ras/ras_test.go index 900eb8fb8..b8b70d55d 100644 --- a/plugins/inputs/ras/ras_test.go +++ b/plugins/inputs/ras/ras_test.go @@ -1,4 +1,5 @@ -// +build linux,!mips,!mipsle,!s390x +// +build linux +// +build 386 amd64 arm arm64 package ras