Telegram Failed to Start

Dears My telegraf suddenly stopped working.

● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/lib/systemd/system/telegraf.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-02-10 10:24:57 +03; 3min 28s ago
Docs: GitHub - influxdata/telegraf: The plugin-driven server agent for collecting & reporting metrics.
Process: 1830 ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS (code=exited, status=1/FAILURE)
Main PID: 1830 (code=exited, status=1/FAILURE)

فبراير 10 10:24:57 danish-PowerEdge-1950 systemd[1]: telegraf.service: Service hold-off time over, scheduling restart.
فبراير 10 10:24:57 danish-PowerEdge-1950 systemd[1]: telegraf.service: Scheduled restart job, restart counter is at 5.
فبراير 10 10:24:57 danish-PowerEdge-1950 systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
فبراير 10 10:24:57 danish-PowerEdge-1950 systemd[1]: telegraf.service: Start request repeated too quickly.
فبراير 10 10:24:57 danish-PowerEdge-1950 systemd[1]: telegraf.service: Failed with result ‘exit-code’.
فبراير 10 10:24:57 danish-PowerEdge-1950 systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.
فبراير 10 10:24:58 danish-PowerEdge-1950 systemd[1]: telegraf.service: Start request repeated too quickly.
فبراير 10 10:24:58 danish-PowerEdge-1950 systemd[1]: telegraf.service: Failed with result ‘exit-code’.
فبراير 10 10:24:58 danish-PowerEdge-1950 systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.
root@danish-PowerEdge-1950:/etc/telegraf/telegraf.d#

What are the possible issues and how to fix it?

Hi

There’s no logging better to help. Can you please run the following and reply with the errors? Thanks

systemctl stop telegraf
telegraf -debug

This stops systemd from trying to run it and then allows you to run it manually

hi Thanks for reply, its fixed

Hi i got the same error message and here is the intended output:

Apr 16 20:44:21 vldrocaap12 systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.
Apr 16 20:44:21 vldrocaap12 systemd[1]: Unit telegraf.service entered failed state.
Apr 16 20:44:21 vldrocaap12 systemd[1]: telegraf.service failed.
May 13 11:30:13 vldrocaap12 systemd[1]: Started The plugin-driven server agent for reporting metrics into InfluxDB.
May 13 11:30:13 vldrocaap12 systemd[1]: telegraf.service: main process exited, code=exited, status=1/FAILURE
May 13 11:30:13 vldrocaap12 systemd[1]: Unit telegraf.service entered failed state.
Warning!! You are in Disaster Recovery Environment!!..BE ALERT!!
DR-SERVER[root@vldrocaap12:/root]

telegraf -debug

2020/05/13 12:17:38 I! Using config file: /etc/telegraf/telegraf.conf
2020-05-13T04:17:38Z D! Attempting connection to output: influxdb
2020-05-13T04:17:38Z D! Successfully connected to output: influxdb
2020-05-13T04:17:38Z I! Starting Telegraf (version 1.3.5)
2020-05-13T04:17:38Z I! Loaded outputs: influxdb
2020-05-13T04:17:38Z I! Loaded inputs: inputs.cpu inputs.mem inputs.processes inputs.system inputs.sysstat inputs.disk inputs.diskio inputs.kernel inputs.swap
2020-05-13T04:17:38Z I! Tags enabled: host=vldrocaap12
2020-05-13T04:17:38Z I! Agent Config: Interval:2m0s, Quiet:false, Hostname:“vldrocaap12”, Flush Interval:10s

2020-05-13T04:18:10Z D! Output [influxdb] buffer fullness: 47 / 10000 metrics.
2020-05-13T04:18:10Z D! Output [influxdb] wrote batch of 47 metrics in 10.148433ms
2020-05-13T04:18:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:18:30Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:18:40Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:18:50Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:19:00Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:19:10Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:19:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:19:30Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:19:40Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:19:50Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:20:00Z D! Output [influxdb] buffer fullness: 58 / 10000 metrics.
2020-05-13T04:20:01Z D! Output [influxdb] wrote batch of 58 metrics in 713.056587ms
2020-05-13T04:20:10Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2020-05-13T04:20:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.

how did you solve this i am getting the same error

I was also getting same issue, During copy paste text are not aligned, So try to type is manually.