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

1 min read

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
1
Subscribe to my newsletter
Read articles from Ronald Bartels directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Ronald Bartels
Ronald Bartels
Driving SD-WAN Adoption in South Africa