collectd: Restart is required after reconnect

The "ping" plugin does not re-resolve the gateway IP address after
pinging it for the first time. For most people this won't be a big
problem, but if the default gateway changes, the latency graph won't
work any more.

In order to do re-resolve "gateway", the only way is to restart
collectd.

Fixes: #13522
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Michael Tremer
2024-01-12 13:29:04 +00:00
committed by Peter Müller
parent 4c7266a39e
commit f2d7d4ec16
4 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
# Restart collectd because the ping plugin does not re-resolve "gateway"
exec /etc/init.d/collectd restart
exit 1