🌡️Recording the CPU temperature on a SD-WAN edge🥵

🌡️Recording the CPU temperature on a SD-WAN edge🥵

Use this script to log CPU temperature on a Fusion SD-WAN edge using Uptime Kuma alerts

The following script uses the push notification facility of Uptime Kuma to record the temperature on Fusion’s SD-WAN edge.

#!/bin/bash
acceptable="60.0"
temperature=$( sensors | sed -n '/^temp1:/s/temp1:[[:space:]]{1,}+//p' | sed 's/°C.*//' )
echo $temperature
if [[ "$temperature" < "$acceptable" ]]; then
   curl -k -s "https://bazooka.amastelek.com/api/push/zIP4NR9g69?status=up&msg=OK&ping=$temperature" 
fi