Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Telegraf service keeps stopping

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 3 Posters 556 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Target-Bravo
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • T
        Target-Bravo
        last edited by

        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

        O C 2 Replies Last reply Reply Quote 0
        • O
          ogghi @Target-Bravo
          last edited by

          @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...

          1 Reply Last reply Reply Quote 0
          • C
            Circenn @Target-Bravo
            last edited by

            @Target-Bravo How did you enable debugging on this plugin?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.