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-)