Proactive Monitoring software for DietPi

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Jack Sabbath
Posts: 3
Joined: Tue Sep 01, 2020 12:12 pm

Proactive Monitoring software for DietPi

Post by Jack Sabbath »

Hello everybody,

I'm setting up my new RasPi and decided to not use OpenMediaVault this time, since it's quite bloated and since DietPi offers alternatives for most of the functionality already.

Yet what I am really missing is some kind of monitoring software that informs me via email if something is wrong. Things like:
- A Cron job fails
- A file system is nearly full
- S.M.A.R.T. values of a drive are getting bad
- RasPi feeling sad or hungry
- other catastrophes

Can you recommend an appropriate software that does that? It should also:
- work well with DietPi
- be reasonably easy to setup
- consume only a reasonable amount of resources -> not super bloated
- be free of charge (ideally Open Source)

Thank you!
User avatar
Joulinar
Posts: 3761
Joined: Sat Nov 16, 2019 12:49 am

Re: Proactive Monitoring software for DietPi

Post by Joulinar »

Hi,

many thanks for your message. Not sure if there is a tool who covers all your needs but you could have a look to the system managemanet tools that are offered by dietpi-software catalogue.
Or you have a look to Debian Wiki https://wiki.debian.org/SystemMonitoring
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Jack Sabbath
Posts: 3
Joined: Tue Sep 01, 2020 12:12 pm

Re: Proactive Monitoring software for DietPi

Post by Jack Sabbath »

Thank you for these resources, and of course for this awesome disto!

I will take a look at them in the next days and post an update which one I'd suggest.
cc13
Posts: 27
Joined: Wed Mar 13, 2019 1:31 pm

Re: Proactive Monitoring software for DietPi

Post by cc13 »

Hello @Jack Sabbath,

Have you tried the different solutions? I'm not sure how far you will go, just for example: I installed Telegraf+InfluxDB+Grafana in a Docker env last days on my RPi4 to have a dashboard available. Next step is to define alarms in Grafana to notify me.
User avatar
WarHawk
Posts: 682
Joined: Thu Jul 20, 2017 8:55 am

Re: Proactive Monitoring software for DietPi

Post by WarHawk »

daemontools?

https://www.techrepublic.com/article/te ... emontools/

https://cr.yp.to/daemontools.html

Ah you want it to alert you if something is wrong
Doing some googling shows a bash script that will run every 5 min and check if the services are working and alert if down
https://unix.stackexchange.com/question ... ted-alerts

This one starts the service if it goes down
http://www.akamaras.com/linux/linux-scr ... s-stopped/

also looked at monit
https://mmonit.com/monit/documentation/ ... -OPERATION

I had to go into the /etc/monitrc config file and comment out the only allow localhost so I could see the webpage it generates (the howto below shows how to add a network to be allowed in)...not sure what it takes to configure the rest, but it's an option
Configuration howto for monit
https://www.digitalocean.com/community/ ... gure-monit

I was able to install it, and setup a "docker" monitor using this at the end of the monitrc file in /etc

Code: Select all

check process apache with pidfile /run/docker.pid
    start program = "/etc/init.d/docker start" with timeout 60 seconds
    stop program  = "/etc/init.d/docker stop"
To add programs you want to monitor...just edit the /etc/init.d/****** and all new blocks at the end

you will have to go thru the config file and setup your email stuff and whatnot...plenty of howto's out there
User avatar
WarHawk
Posts: 682
Joined: Thu Jul 20, 2017 8:55 am

Re: Proactive Monitoring software for DietPi

Post by WarHawk »

I just installed monitorix

It has a webgui as well...builds graphs for all sorts of apps and I think you can configure it to alert

wish I could help more
Post Reply