Skip to content

Commit

Permalink
fix: restart alertmanager
Browse files Browse the repository at this point in the history
Expand configuration and restart alertmanager on smarthost-changed
event.

Prometheus restart is not required.
  • Loading branch information
DavidePrincipi committed Mar 4, 2025
1 parent 619de3d commit 3fc2878
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion imageroot/events/smarthost-changed/10handler

This file was deleted.

10 changes: 10 additions & 0 deletions imageroot/events/smarthost-changed/15handler
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#
# Copyright (C) 2025 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

# reload the smarthost configuration
reload_configuration
systemctl --user try-restart alertmanager.service

0 comments on commit 3fc2878

Please sign in to comment.