Telegraf service stops when the physical interface is reconnected or reconfigured
-
In the last version 2.7.2 I noticed several times that the Telegraf service stopped working, now I found that it happens when reconnecting the physical interface. Probably also when adjusting interface parameters such as MTU. Is this considered a bug or how to prevent it ? (I have to remember to check it after such actions)
-
@CZvacko So it happens even after changing the interface IP
-
Have you tried using Service Watchdog package to monitor Telegraf? I currently have it configured on mine since I do run into the occasional issue where Telegraf is stopped by configuration changes. I also enabled email notification when it restarts the service.
-
@ronv42 Thanks for the tip, I didn't know such a package exists.
-
@CZvacko said in Telegraf service stops when the physical interface is reconnected or reconfigured:
In the last version 2.7.2 I noticed several times that the Telegraf service stopped working, now I found that it happens when reconnecting the physical interface. Probably also when adjusting interface parameters such as MTU. Is this considered a bug or how to prevent it ? (I have to remember to check it after such actions)
This might be a bug. Check Telegraf logs for details, and configure it to restart automatically by editing its service file:
Restart=always
Restart with sudo systemctl daemon-reload && sudo systemctl restart telegraf. Update to the latest version and report the issue on Telegraf's GitHub if it persists.