Host agents: troubleshooting

What you see Likely cause and fix
The collector logs x509: certificate is valid for ..., not NETLENS the name in endpoint is not in the server certificate. Add it under Name or address the collectors connect to and save.
x509: certificate signed by unknown authority ca_file is not the ca.pem of this Netlens (or you uploaded your own server certificate: trust your CA).
remote error: tls: bad certificate or the connection is closed right after the handshake the client certificate is expired, not from a CA Netlens trusts, or no cert_file/key_file is set. Check openssl x509 -in agent.crt -noout -dates -issuer.
HTTP 403 certificate not known to any agent the certificate is valid but no agent owns it: it was replaced by Enrol again, deleted, or (own CA) the identity does not match.
HTTP 403 agent is revoked revoked in Netlens. Enrol again (Netlens certificate) or Allow again (own CA).
HTTP 415 the exporter sends protobuf. Set encoding: json (OTel) or data_format = "json" (Telegraf).
HTTP 429 more than about 12 requests a minute from one agent. Raise the batch timeout / interval.
HTTP 413 a request over 1 MiB or too many data points. Send less often with fewer scrapers, or split the host’s collector.
Enrolment says enrolment refused the token is wrong, used or older than 24 hours; make a new one. The answer is deliberately the same for every cause.
Enrolment: connection refused no enrolment window is open (open one), or port 4319 is blocked.
Enrolment says 3072 the key is too weak. Use ecparam -name prime256v1 as shown.
Data arrives but the device shows nothing the device is monitored another way (remove that monitor), or the readings are on another device (check the linked device). Note that CPU needs two rounds before it is shown.
The agent shows silent the collector stopped, the host is down, the network or a firewall blocks 4318, or the certificate ended. Look at the collector’s log first.
The clock certificates and readings are time-bound: keep the host clock correct (NTP). A reading more than a day old or five minutes ahead is dropped.
partialSuccess warnings in the collector log some readings were not usable (for example for a host that is not linked). Metrics Netlens does not use are ignored without a warning.