[agent] Error writing to outputs.graphite: could not write to any server in cluste

One of the Mac servers is not reporting to Grafana.
Telegraf 1.34.4

this is conf file

[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = ""
  hostname = "mac05"
  omit_hostname = false

[[outputs.graphite]]
  servers = ["1.2.3.4:2003"]
  prefix = ""
  template = "host.tags.measurement.field"
  timeout = 2

[[inputs.cpu]]
  percpu = true
  totalcpu = true
  collect_cpu_time = false
  report_active = false

[[inputs.disk]]
  ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]

[[inputs.mem]]
  # no configuration

When i check the telegraf.log

2025-09-06T16:33:01Z E! **[agent] Error writing to outputs.graphite: could not write to any server in cluster**
2025-09-06T16:33:11Z E! [agent] Error writing to outputs.graphite: could not write to any server in cluster
2025-09-06T16:33:21Z E! [agent] Error writing to outputs.graphite: could not write to any server in cluster

But if when i run
telegraf --config /usr/local/etc/telegraf.conf --debug

then it works fine and reports the metrix to grafana. where should i look ???

1> I have restart the server
2> Restarted the telegraf
3> I have check the IP server IP address

Is this reproducible? If so, are there any other error messages before the lines you’ve shown? There should be at least a line staring with

E! Writing to ... failed: ...

I have restarted the telegarf and this is the log which i have got

Available plugins: 238 inputs, 9 aggregators, 33 processors, 26 parsers, 63 outputs, 5 secret-stores

2025-09-16T13:12:59Z I! Loaded inputs: cpu disk mem net

2025-09-16T13:12:59Z I! Loaded aggregators:

2025-09-16T13:12:59Z I! Loaded processors:

2025-09-16T13:12:59Z I! Loaded secretstores:

2025-09-16T13:12:59Z I! Loaded outputs: graphite

2025-09-16T13:12:59Z I! Tags enabled: host=mac

2025-09-16T13:12:59Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“mac”, Flush Interval:10s

2025-09-16T13:12:59Z W! [agent] The default value of ‘skip_processors_after_aggregators’ will change to ‘true’ with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to ‘false’!

2025-09-16T13:12:59Z W! DeprecationWarning: Value “false” for option “ignore_protocol_stats” of plugin “inputs.net” deprecated since version 1.27.3 and will be removed in 1.36.0: use the ‘inputs.nstat’ plugin instead for protocol stats

2025-09-16T13:13:09Z E! [agent] Error writing to outputs.graphite: could not write to any server in cluster

2025-09-16T13:13:19Z E! [agent] Error writing to outputs.graphite: could not write to any server in cluster

2025-09-16T13:13:29Z E! [agent] Error writing to outputs.graphite: could not write to any server