diff --git a/plugins/inputs/ras/README.md b/plugins/inputs/ras/README.md index 8d89cf385de65..9c1cda75bff10 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 630e712d8a941..a8599c4a78d0f 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 b529a4b644038..74f0aaf9fc59f 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 900eb8fb86832..b8b70d55d66d7 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