# Linux sudo systemctl status telegraf journalctl -u telegraf -n 50 # Windows (PowerShell) Get-Service telegraf Get-EventLog -LogName Application -Source Telegraf -Newest 20
If the service is stopped or in a crash loop, the log shows the reason. Fix it and start the service again.
The most common Telegraf log line:
Error writing to outputs.http: Post “https://...”: dial tcp …: connect: connection refused
Test from the host:
curl -v https://collector.example.com/api/v1/os-agent/push
Even a 401 Unauthorized answer is good - it means the network path works.
If you get connection refused or timeout → check:
telegraf.conf (scheme, host, port)
If Telegraf logs received status code: 401:
X-API-Key line in telegraf.confIf the Active checkbox in the API Keys tab is unchecked, every push is rejected with 401. Tick it and click Save.
Restart it:
# Linux sudo systemctl restart telegraf # Windows Restart-Service telegraf
Check the Telegraf log on the host - the latest error tells what is wrong (network, auth, host is set inactive…).
After clicking Regenerate in the Collector, every deployed agent using the old key starts to be rejected. Update telegraf.conf with the new key and restart Telegraf.
Open the host detail in the Monitor tab and click Activate.
telegraf.conf over) and restart Telegrafprocstat pushes every 30 seconds with the default top-K filter. Wait one cycle and click Refresh.
Inside Docker without SYS_PTRACE, the procstat input only sees Telegraf's own process. Add the cap when starting the container:
docker run --cap-add SYS_PTRACE ... telegraf:latest
Or run Telegraf on the host instead of in a container.
This is not a bug - per-process disk I/O needs read access to /proc/<pid>/io on Linux:
If the host is in Docker, add –cap-add SYS_PTRACE or –privileged to the run, or accept that the field stays empty.
swap, system, processes, kernel, temp are Linux only - empty on Windows is normaltemp on Linux needs lm-sensors installed (sudo apt install lm-sensors && sudo sensors-detect)diskio on Windows reports per-physical-drive only, not per-partitionThe counter rises every time a push gets 401. Possible causes:
Click Clear in the Statistics tab, then watch the counter. If it stays at zero, the issue is fixed.
Failed to parse influx body: messagesThe Collector received a body it cannot parse as Influx Line Protocol. Causes:
text/plain Influx LP only
Open the Collector log, find the Failed to parse influx body: line - it shows the offending content. Fix the sender.
OS Agent: host cap reached (10000), rejecting auto-discovery of <hostname>
Almost always means someone (or a script) is pushing with random host tag values using a valid API key. Steps:
If Telegraf is still running with a valid key, the host will re-appear after every Delete. Either:
sudo systemctl stop telegraf or Stop-Service telegraf)If you cannot stop Telegraf (the host is unreachable), use Deactivate instead - inactive hosts reject all pushes and stay listed.
This is by design. The Collector does not push config to agents. Apply changes manually:
sudo ./setup.sh), ortelegraf.conf from the Configuration tab, copy it to the host, restart Telegraf:# Linux sudo systemctl restart telegraf # Windows Restart-Service telegraf