If a server's graphs have gone flat, or you got an email saying it has stopped reporting, this article helps you work out why and get it reporting again. It's for anyone who manages servers in InfraNest.
#Overview
- Either the server itself is down, or the agent on it can't get its readings to InfraNest.
- The Server metrics widget on your dashboard shows Not reporting and a number whenever any of your servers has gone quiet — click it to see which ones.
- Below, you'll check when InfraNest last heard from the server, ask the agent directly what's wrong, and match the answer to a fix.
#See when we last heard from it
- Go to Monitoring, select the Servers tab, and open the server.
- Select the System tab and find the Agent panel. It says last heard from followed by a time.
That time is the one to trust. If it's more than a few minutes ago, nothing is arriving.
- If the panel says Readings refused, the agent is reaching InfraNest but its readings can't be kept. The panel tells you why, and how to fix it. Today that's always the server's clock: it says how far ahead or behind the clock is, and gives you the command that switches on time sync. Once the clock is right, readings arrive again with the agent's next report.
#Ask the agent itself
If the Agent panel doesn't explain it, the agent can tell you what's wrong, even when it can't reach InfraNest.
- On the server, run:
sudo infranest-agent status
On Windows, in PowerShell as Administrator:
& "C:\Program Files\InfraNest\infranest-agent.exe" status
- Read the result. It says when the agent last delivered a reading, how many readings are waiting, and why it's stuck.
- If you get no answer at all, the agent isn't installed or isn't running. Check that the server is up, then restart the agent with
sudo systemctl restart infranest-agenton Linux.
#What the answer means, and what to do
The token was rejected. The agent's token was deleted in InfraNest, or it belongs to a different server. InfraNest doesn't show this on its side, so the agent's own status is the only place you'll see it.
- Open the server.
- Select Install the agent in the Agent panel, then select Install it again. This creates a new token.
- Run the new command on the server.
- Delete the old token with the bin icon next to it.
Monitoring is switched off. Monitoring is off for this server in InfraNest. Nothing is wrong with the agent or its token, so there's nothing to reinstall. Switch monitoring back on and the agent picks up again by itself. See Switch on monitoring for a server.
The clock is off. The server's time is wrong, and InfraNest turns away readings that claim to come from the future, or that look too old to keep. The Agent panel shows this as Readings refused, with how far off the clock is.
- On most Linux systems, switch on time sync with
sudo timedatectl set-ntp true. - On Windows, run
w32tm /resyncin PowerShell as Administrator.
It can't connect. The agent can't reach InfraNest. It only needs to make outgoing secure web connections (HTTPS, port 443) to ingest.infranest.io. Check that a firewall, security group or proxy on the server's network allows that. No incoming ports are needed.
If none of these fit, run sudo infranest-agent flare and paste the result into a support ticket. It contains everything needed, and leaves out your token.
#Nothing is lost while it's quiet
The agent keeps its readings on the server for about eight hours and sends them once the connection is back. So if you fix a network problem within that time, the gap in your graphs fills itself in.
#Get told the next time
Alerts about silent servers are off until you switch them on.
- Go to Monitoring → Alert defaults.
- Under Is anything broken?, switch on The server has gone quiet.
You can change this for one server on that server's Alerts & rules tab. Allow a few minutes of silence, not one — ten is a comfortable choice. If you pick less than your plan can judge, InfraNest tells you the shortest you can set.
This alert also covers a server whose readings are being turned away. It's still in touch, but nothing it sends is kept, so after the same few minutes it counts as gone quiet, and the alert says it's the clock.
NoteDeleting a server's last agent token doesn't uninstall the agent. It keeps running and retrying until you remove it from the machine. See Install the server agent, step by step for how to remove it.
TipEach server needs its own token. If two servers share one, InfraNest can't tell when one of them goes quiet.
Was this article helpful?
Thanks for your feedback!
Thanks, this goes straight to the docs team.