From 20f9d62fdebb66f8ff0f05d5d454959abc4868b4 Mon Sep 17 00:00:00 2001 From: pimlie Date: Wed, 16 Apr 2025 13:27:12 +0200 Subject: [PATCH] fix: always check turbostat exists and is executable --- plugins/sensors/turbostat_ | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/sensors/turbostat_ b/plugins/sensors/turbostat_ index da5905ff..579aff5b 100755 --- a/plugins/sensors/turbostat_ +++ b/plugins/sensors/turbostat_ @@ -195,6 +195,10 @@ case $1 in fi ;; *) + if ! turbostat_exists; then + exit 1 + fi + GRAPH_TYPE=${0##*turbostat_} for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do