Skip to content

Commit

Permalink
feat: restart mosquitto if port 1883 is not reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Nov 21, 2024
1 parent e2afd78 commit 8ae659d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/conf.d/tedge-monitoring.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ae659d

Please sign in to comment.