Telegraf service keeps stopping
-
Installed Telegraf and have it sending the data to an Influx db on my home assistant server.
It works for about 24 hours then the service will stop. The only thing in the logs is the below.
daemon: process already running, pid: 79723
Has anyone else encountered this and have a fix? alternatively anyone know how to get the service to auto restart?
-
update:
Enabled Debugging on telegraf and here are the last lines in the log before it stops itself..
2024-09-03T22:13:04Z E! [outputs.influxdb] When writing to [http://10.0.6.18:8086]: failed doing req: Post "http://10.0.6.18:8086/write?db=pftelegraph": write tcp 10.0.6.1:47186->10.0.6.18:8086: write: permission denied
2024-09-03T22:13:04Z D! [outputs.influxdb] Buffer fullness: 91 / 10000 metrics
2024-09-03T22:13:04Z E! [agent] Error writing to outputs.influxdb: could not write any address
2024-09-03T22:13:14Z D! [outputs.influxdb] Wrote batch of 182 metrics in 14.421762ms
2024-09-03T22:13:14Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2024-09-03T22:13:24Z D! [outputs.influxdb] Wrote batch of 91 metrics in 10.218294ms
2024-09-03T22:13:24Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2024-09-03T22:13:34Z D! [outputs.influxdb] Wrote batch of 91 metrics in 10.378776ms
2024-09-03T22:13:34Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2024-09-03T22:13:44Z D! [outputs.influxdb] Wrote batch of 91 metrics in 6.692723ms
2024-09-03T22:13:44Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2024-09-03T22:13:54Z D! [outputs.influxdb] Wrote batch of 91 metrics in 9.870302ms
2024-09-03T22:13:54Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2024-09-03T22:13:59Z D! [agent] Stopping service inputs
2024-09-03T22:13:59Z D! [agent] Input channel closed
2024-09-03T22:13:59Z I! [agent] Hang on, flushing any cached metrics before shutdown
2024-09-03T22:13:59Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2024-09-03T22:13:59Z I! [agent] Stopping running outputs
2024-09-03T22:13:59Z D! [agent] Stopped Successfully -
@Target-Bravo No solution from my side, just saying that I am affected, too!
Using Telegraf to collect data to an InfluxDB to visualize in Grafana...
Oddly it crashes only on 1 of the 3 pFsenses we have...