From 3e52ecdd311e377e9c49790a592288dc8dc86878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 24 Feb 2020 14:31:04 +0100 Subject: [PATCH] Fix ddc0d42 with basename to get script name... --- xymon/plugins/client/ext/smartoverall | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xymon/plugins/client/ext/smartoverall b/xymon/plugins/client/ext/smartoverall index c72b902..fd42882 100755 --- a/xymon/plugins/client/ext/smartoverall +++ b/xymon/plugins/client/ext/smartoverall @@ -28,6 +28,9 @@ c_redb='\033[1;31m' c_magentab='\033[1;35m' c_reset='\033[0m' ## }}} + +plugin_name=$(basename "${0}") + # }}} # Functions @@ -206,7 +209,7 @@ fi COLOR=$(< /tmp/dcheck awk '{print $1}' | sort | uniq | head -1 | cut -c3-) # Send informations to Xymon server -$XYMON "${XYMSRV}" "status ${MACHINE}.${0} ${COLOR} SMART health check +$XYMON "${XYMSRV}" "status ${MACHINE}.${plugin_name} ${COLOR} SMART health check $(< /tmp/dcheck cut -c2-)