The server has not reported for 48 hours
- Check
agent.stale- Severity
- medium
- Runs
- on our side, with the data of the report
- Looks at
- Time of the last report
What the check looks at
The time of the last report. The agent reports once a day; the check fails when the last report is more than 48 hours old, also when the server is off. CI projects, which upload when they build, are not checked.
Risk
New CVEs are still matched against the last package list, but updates, new packages and new containers stay unseen, and the configuration checks do not run. Two days without a report usually mean that the server is down, the timer stopped, the network blocks the upload, or the API key was revoked.
How to fix it
Check the timer and the last run. With systemd:
systemctl list-timers vulnpocalypse-agent.timer
sudo systemctl status vulnpocalypse-agent.service
sudo journalctl -u vulnpocalypse-agent.service -n 50
On systems without systemd, the installer adds a cron entry (/etc/cron.d/vulnpocalypse-agent, or a line in
/etc/crontabs/root on Alpine).
Read the answer to the last upload:
sudo cat /var/lib/vulnpocalypse/last-response.json
Then send a report by hand and read the output:
sudo /usr/local/lib/vulnpocalypse/run.sh send
Common causes:
| Cause | What to do |
|---|---|
| The timer was disabled or removed, for example by a configuration management run. | sudo systemctl enable --now vulnpocalypse-agent.timer |
| The key was revoked, or the server limit of the plan is reached (the response says which). | Create a new key in the dashboard and put it on the KEY= line of /etc/vulnpocalypse/agent.conf (mode 600). |
| A firewall rule or proxy blocks outbound HTTPS. | Allow the HTTPS connection of the agent. |
| Docker mode, and Docker does not run. | sudo systemctl status docker |
| A new server with the same name replaced this one. | Install the agent on the new server and delete the old one in the dashboard. |
| The server was shut down on purpose. | Delete it in the dashboard. |
In a terminal, the installer asks for the server name; type the old name to keep it. Without a terminal it picks
server- and six hex digits, and you can rename the server on the dashboard.
How to check the fix
After run.sh send, the dashboard shows the new report time and the check passes.
systemctl list-timers vulnpocalypse-agent.timer must show the next run within 24 hours.
When a warning is fine
When the server is off for a known period, such as a seasonal system; the first report after the start clears the check. Delete a server that is gone for good in the dashboard, which removes its data.
Sources
- Agent documentation (the files of the installer:
/etc/vulnpocalypse/agent.conf,/usr/local/lib/vulnpocalypse/run.sh,/var/lib/vulnpocalypse/,vulnpocalypse-agent.serviceand.timer, the cron fallback) - systemd.timer (
Persistent=,list-timers)