From df9e73fd1fcf921312ae3eec39589f31f1b7b3c2 Mon Sep 17 00:00:00 2001 From: zebra Date: Tue, 19 Mar 2024 12:34:15 -0700 Subject: [PATCH] Oops, copy pastad the wrong DATA variable declaration --- nvgputemp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvgputemp.sh b/nvgputemp.sh index 128f809..dcfa1a9 100644 --- a/nvgputemp.sh +++ b/nvgputemp.sh @@ -43,7 +43,7 @@ echo "$gpu_info" AGENTID=$(cat /etc/tacticalagent | jq -r .agentid) URL="https://your.RMM.api.here/agents -DATA=$(echo {} | jq -n --arg LOAD "$gpu_info%" '{"custom_fields":[{"field":20,"string_value":$LOAD}]}') +DATA=$(echo {}|jq -n --arg TEMP "$gpu_temps" '{"custom_fields":[{"field":18,"string_value":$TEMP}]}') # Make sure to declare an API key in a secure fashion. curl -s -X PUT -H "Content-Type: application/json" -H "X-API-KEY:$API" $URL --data "$DATA" >NUL