From 14e81f479dee6e74c8d2499713740b447845060b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=C5=BBak?= Date: Mon, 26 Oct 2020 22:33:26 +0100 Subject: [PATCH] Disable RAS input plugin on specific Linux architectures: mips64, mips64le, ppc64le, riscv64 (#8317) --- plugins/inputs/ras/README.md | 2 +- plugins/inputs/ras/ras.go | 3 ++- plugins/inputs/ras/ras_notlinux.go | 2 +- plugins/inputs/ras/ras_test.go | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) 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