Raspberry Pi monitoring tool with dashboard for multiple RPi devices

Raspberry Pi Monitoring and Dashboard (Good for Any Linux Device)

I have created a simple monitoring tool for multiple RPi devices with a dashboard. My need for monitoring stems from a fact that I use multiple Raspberry Pis for different purposes such as dashboards. Sometimes they would crash or be unavailable (disconnected from a network). This monitoring script addresses that as it offers real-time dashboard.

The number of devices you can monitor is unlimited and they don’t have to be Raspberry Pis only. It works with standard Linux devices as well such as servers, laptops or similar. The tool is configurable and can report anything as it runs commands from bash / cli / terminal run.

Data reported

It reports these data by default:

  • hostname
  • CPU temperature
  • network IP address
  • ping results
  • running browser (only Firefox and Chromium are checked at the moment)
  • optionally also a screenshot of current graphical X display (using scrot)

It can report anything as commands are defined as standard bash commands and are fully configurable in config file. Full output can be reported or output can be searched for strings to match and only matching lines will be reported in the Raspberry Pi monitoring dashboard.

Raspberry Pi monitoring with screenshot of graphical display (X screen)
Raspberry Pi monitoring with screenshot of graphical display (X screen)

Architecture

The whole monitoring is as simple as possible and consists of two files (+two configs).

One file is meant to be used at a server and works both as a data receiver and dashboard written in PHP and comes with a config file.

File for RPi is a client reporting script written in Python and comes with a TOML config file.

Browser authentication is optional, you can set username and password to require login before dashboard display. Simple Digest browser authentication is used to secure the dashboard page.

RPi dashboard

The dashboard looks like this:

Raspberry Pi monitoring tool with dashboard for multiple RPi devices
Raspberry Pi monitoring tool with dashboard for multiple RPi devices

Open Source Monitoring with Dashboard

This Raspberry Pi (and Linux) tool for monitoring with a dashboard is fully open source. It works for any Raspberry Pi such as Zero, Zero W, 1, 2, 3, 4 or 5 including any models versions such as B or B+. It won’t work for Pico as it does not run standard Linux operating system.

Good for any Linux device (not just Raspberry Pis!)

The monitoring works for any Linux device as well, not only RPis as it uses standard bash commands for reporting values such as network, CPU temperature, voltage, display etc. back. You can use any command for monitoring to be displayed on the dashboard as the software is fully configurable.

Download

You can download RPi Monitor Dashboard from my Github repo under MIT License.

Do you require a hosted monitoring service?

I can set it up for you for a monthly fee. Get in touch.

Comments or tips?

Let me know if you decided to use it and of course, any improvements via pull requests are welcome.


Have a comment? Join discussion on Mastodon as a reply to: @dusoft@fosstodon.org