Send CPU usage percentage as ping value so it'll be graphed

This commit is contained in:
Skylar Ittner 2025-08-31 16:52:30 -06:00
parent c1c563cf23
commit 3158bf16a7

View File

@ -87,7 +87,7 @@ fi
echo -n "Sending status: "
if [[ $IS_OK == "1" ]]; then
echo "OK"
curl -s -o /dev/null -G "$API_URL$PUSH_KEY?status=up&msg=OK"
curl -s -o /dev/null -G "$API_URL$PUSH_KEY?status=up&msg=OK&ping=$CPU_PERCENT"
else
ERROR_STRING=$(IFS=";"; echo "${ERROR_MESSAGES[*]}")
echo $ERROR_STRING