Skip to content

Tool to activate watchdog on a Raspberry Pi including a healthcheck of one website

Notifications You must be signed in to change notification settings

pmcgn/rpi_watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to rpi-watchdog

rpi-watchdog is a simple way to make use of the Raspberry Pi's hardware watchdog. The Idea is to run this tool inside a docker container. If the system crashes or a monitored URL (optional) does not resond with HTTP 200 OK, the watchdog will trigger a reset.

The Docker Image

tbd

How does it work?

The watchdog inside the rasperry Pi is a separate hardware unit inside each Pi. After it has been activated, it requires a write command to /dev/watchdog. If the command does not come within a 15s timeframe, the watchdog will reset the Pi. As the watchdog is realized in hardware, it is able to trigger a reset, even if the operating system stops responding. With the ability to monitor a website (e.g. smarthome system running in another docker container), the watchdog can also be used to restart the Pi, if a single container has crashed (this will be improved, but for now it's an effective way to ensure availability of a particular system).

About

Tool to activate watchdog on a Raspberry Pi including a healthcheck of one website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published