Scripting & Automation (Raspberry Pi 5) · System Update and Device Health Monitor

System Update and Device Health Monitor

A Bash script that checks for updates (and installs them if available) while logging disk, memory, CPU usage, and device temperature. Designed for Raspberry Pi 5 and scheduled via cron.

Flow: create the script → make it executable → run and review logs → schedule it hourly. The screenshots below walk through each step.

1) Create the Script

Editing the system update & health monitor script in nano

2) Save & Make Executable

Saved script preview
chmod to make the script executable

3) Run the Script

Running the update & health monitor script

4) Review the Logs

Concatenate the latest log outputs to confirm update actions and resource/temperature readings.

Concatenating the script log output
Log data with update and device health results

5) Schedule Hourly with Cron

Opening crontab editor
Open the crontab editor.
Adding an hourly crontab entry
Example: 0 * * * * /path/to/update-monitor.sh

Back to Home