• 0 Posts
  • 1 Comment
Joined 3 years ago
cake
Cake day: July 9th, 2023

help-circle
  • Early on I wrote a script for my user account to run df and save the output to a file, then a second script to read that file and if the drive was full send me an email.

    First, it failed because it couldn’t send the email because the email service failed under full disk conditions.

    Second, it failed because it couldn’t write the file to disk because the disk was full.

    Third, it failed because outbound SMTP was blocked by my ISP.

    I learned a lot about how well you can fail if you really put your mind to it. Now I have Home Assistant grabbing the disk stats for my machines and flagging anything over 90%.