From 8ae659dd0231ed3e6fed7d44d654f21fc4ecd5c0 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Thu, 21 Nov 2024 17:03:01 +0100 Subject: [PATCH] feat: restart mosquitto if port 1883 is not reachable --- src/conf.d/tedge-monitoring.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf.d/tedge-monitoring.conf b/src/conf.d/tedge-monitoring.conf index 23cead9..7706016 100644 --- a/src/conf.d/tedge-monitoring.conf +++ b/src/conf.d/tedge-monitoring.conf @@ -16,6 +16,7 @@ check system $HOST # always used in all installations check process mosquitto MATCHING "mosquitto -c .+" if failed port 1883 protocol mqtt then alert + if failed port 1883 protocol mqtt for 2 cycles then exec "/usr/bin/systemctl restart mosquitto" # Note: the tedge-agent memory usage can spike when using package managed such as apt as # they generally require a lot of memory (>100MB) if you access the indexes from any public software