Collector (internal network) — Hit Status docs
The collector is a lightweight agent that runs inside the customer's network and checks what is not visible on the internet: internal IPs, servers…
Collector: monitoring from inside the network
The collector is a lightweight agent that runs inside the customer's network and checks what is not visible on the internet: internal IPs, servers, databases, printers, MPLS circuits, gateways and systems that exist only on the company network.
!The collector checks the local network and sends only the results to Hit Status
How it works, in one sentence
The collector asks Hit Status what it needs to check, runs the checks on the local network and sends back only the results. Everything goes from the inside out.
- It only needs outbound HTTPS (port 443) to
hitstatus.pro. No inbound port is opened and there is no VPN. - It runs ping, TCP port, HTTP, keyword, DNS and SSL certificate checks against any address its machine can reach.
- It is two files plus Node.js 22 or newer, with no dependencies. It runs on Linux, Windows, macOS, Docker, Kubernetes and even Raspberry Pi.
- The rule is simple: install it on a machine that can see what you want to monitor. If you can ping the server from that machine, the collector can too.
- If it goes 90 seconds without talking to Hit Status, it shows as offline in the dashboard and its monitors get the "no update" mark.
Available from the Pro plan (1 collector) and Business (5 collectors).
Example: monitoring the IP of an internal service
You want to know whether server 10.0.0.15 responds and whether its SQL Server is accepting connections.
- Collectors → New collector. Give it a name, for example "Headquarters", and copy the token. It is shown only once.
- Install the collector on any machine at headquarters that can reach
10.0.0.15, using one of the methods below. Within seconds it shows as online in the dashboard. - Create the monitors on the server's asset and, under Run from, choose the "Headquarters" collector:
- Ping on target
10.0.0.15; - TCP port on target
10.0.0.15, port 1433.
Done: the checks run from headquarters, and incidents, alerts, the Status Wall and status pages work just like they do for cloud monitors.
Internal addresses (10.x, 172.16–31.x, 192.168.x, localhost) are only accepted on monitors linked to a collector. The Hit Status cloud rejects private targets for security reasons.
Let your AI agent install it
In Collectors → Copy prompt for the agent, Hit Status generates a complete script, with the token already included, to paste into your AI agent (Claude Code, Cursor, Copilot, ChatGPT) that has access to the machine or to the infrastructure repository. The agent identifies the system, picks the method, configures the proxy if there is one, sets it up as a service and confirms that the collector is online.
Installation by system
The wizard on the Collectors screen generates these commands with your token already filled in. Below, hs_SEU_TOKEN is the token copied in step 1.
Linux (systemd)
sudo mkdir -p /opt/hit-agent
sudo curl -fsSL https://hitstatus.pro/agent/hit-agent.mjs -o /opt/hit-agent/hit-agent.mjs
sudo curl -fsSL https://hitstatus.pro/agent/checker.mjs -o /opt/hit-agent/checker.mjs
# /etc/systemd/system/hit-agent.service
[Unit]
Description=Hit Status Agent
After=network-online.target
Wants=network-online.target
[Service]
Environment=HIT_SERVER=https://hitstatus.pro
Environment=HIT_TOKEN=hs_SEU_TOKEN
ExecStart=/usr/bin/node /opt/hit-agent/hit-agent.mjs
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload && sudo systemctl enable --now hit-agent && journalctl -u hit-agent -f
Docker
docker run -d --name hit-agent --restart unless-stopped --cap-add=NET_RAW \
-e HIT_SERVER=https://hitstatus.pro -e HIT_TOKEN=hs_SEU_TOKEN \
node:22-alpine sh -c "wget -qO hit-agent.mjs https://hitstatus.pro/agent/hit-agent.mjs && wget -qO checker.mjs https://hitstatus.pro/agent/checker.mjs && node hit-agent.mjs"
--cap-add=NET_RAW is what allows ping inside the container.
Kubernetes
A 1-replica Deployment in a cluster that can see the internal network. Download the ready-made manifest at /sdk/kubernetes/collector-deployment.yaml, replace the token in the Secret and apply it with kubectl apply -f. It already includes the NET_RAW capability for ping and commented-out proxy lines.
Windows
Install Node.js 22 LTS (nodejs.org) and download the two files to C:\hit-agent:
New-Item -ItemType Directory -Force C:\hit-agent | Out-Null
Invoke-WebRequest https://hitstatus.pro/agent/hit-agent.mjs -OutFile C:\hit-agent\hit-agent.mjs
Invoke-WebRequest https://hitstatus.pro/agent/checker.mjs -OutFile C:\hit-agent\checker.mjs
To run it as a service, use NSSM (nssm.cc):
nssm install HitAgent "C:\Program Files\nodejs\node.exe" "C:\hit-agent\hit-agent.mjs"
nssm set HitAgent AppEnvironmentExtra HIT_SERVER=https://hitstatus.pro HIT_TOKEN=hs_SEU_TOKEN
nssm start HitAgent
Without installing anything besides Node, you can use Windows' own Task Scheduler, starting with the system:
schtasks /Create /TN HitAgent /SC ONSTART /RU SYSTEM /RL HIGHEST /TR "\"C:\Program Files\nodejs\node.exe\" C:\hit-agent\hit-agent.mjs --server https://hitstatus.pro --token hs_SEU_TOKEN"
schtasks /Run /TN HitAgent
macOS
sudo mkdir -p /usr/local/hit-agent && cd /usr/local/hit-agent
sudo curl -fsSLO https://hitstatus.pro/agent/hit-agent.mjs && sudo curl -fsSLO https://hitstatus.pro/agent/checker.mjs
Create /Library/LaunchDaemons/pro.hitstatus.agent.plist pointing to node (find the path with which node) with the arguments /usr/local/hit-agent/hit-agent.mjs --server https://hitstatus.pro --token hs_SEU_TOKEN, with RunAtLoad and KeepAlive enabled, and load it:
sudo launchctl load -w /Library/LaunchDaemons/pro.hitstatus.agent.plist
Just to test
On any system with Node.js 22, straight from the terminal:
node hit-agent.mjs --server https://hitstatus.pro --token hs_SEU_TOKEN
Networks with a mandatory proxy
In many companies, internet traffic can only go out through a corporate proxy. The collector gets through the proxy by opening a tunnel to hitstatus.pro:443; internal checks still go out directly, without passing through the proxy.
!Collector going through the corporate proxy
# proxy without authentication
node hit-agent.mjs --server https://hitstatus.pro --token hs_SEU_TOKEN --proxy http://proxy.empresa.local:3128
# proxy with username and password
HIT_PROXY=http://usuario:senha@proxy.empresa.local:3128 node hit-agent.mjs
- The collector also reads the standard
HTTPS_PROXY and HTTP_PROXY variables, and honors NO_PROXY. - Special characters in the password must be URL-encoded (for example,
@ becomes %40). - TLS-inspecting proxy: if the company replaces websites' certificates, point
NODE_EXTRA_CA_CERTS to the internal certificate authority's certificate, in PEM format. Do not use --insecure in production. - Kerberos or NTLM authentication integrated with Windows is not supported; ask the network team for an exception for
hitstatus.pro or for a service user with basic authentication.
Options
Option · Variable · Default · Description
--server · HIT_SERVER · — · Hit Status address (https://hitstatus.pro)
--token · HIT_TOKEN · — · Collector token
--proxy · HIT_PROXY, HTTPS_PROXY · — · Outbound proxy, with optional username and password
— · NO_PROXY · — · Destinations that do not use the proxy
--poll · HIT_POLL_MS · 5000 · Interval between server polls (ms)
--concurrency · HIT_CONCURRENCY · 20 · Simultaneous checks
--insecure · HIT_INSECURE=1 · — · Accepts self-signed TLS on the server (lab only)
What to allow in the company firewall
Source · Destination · Port · Why
Collector machine · hitstatus.pro · 443 TCP, outbound · Fetch jobs and send results
Collector machine · Internal targets · the monitored ports and ICMP · Run the checks
Nothing needs to be allowed from the outside in.
Tested on
Version 1.1 of the collector was tested end to end with ping, port, HTTP and DNS on:
- macOS, with Node.js 22, directly and through an authenticated proxy;
- Linux, in the official
node:22-alpine container from the Docker method above; - Proxy, confirming that all traffic to the server goes through the tunnel, including end-to-end HTTPS.
On Windows, ping handles the Portuguese-language response and the "destination host unreachable" case, in which Windows reports success even without a reply.
Common problems
What shows up in the log · What to do
token rejeitado pelo servidor (401) · Wrong or rotated token. Generate another one in Collectors → Generate new token.
sem conexão com https://hitstatus.pro (ENOTFOUND) · The machine cannot resolve internet names. Check DNS or whether the network requires a proxy.
sem conexão … (ETIMEDOUT) or (ECONNREFUSED) · Outbound 443 is blocked. Allow hitstatus.pro:443 or use --proxy.
o proxy pediu autenticação (407) · Provide the username and password in the proxy URL.
… CERT … or SELF_SIGNED · The network inspects TLS. Use NODE_EXTRA_CA_CERTS with the company certificate.
ping indisponível · In Docker, --cap-add=NET_RAW is missing; on minimal Linux, install the iputils-ping package.
Collector online, monitor failing · The collector machine cannot reach the target. Test from the server itself with ping or nc -vz alvo porta.
Sizing and redundancy
A collector on a VM with 1 vCPU and 512 MB comfortably handles 500 monitors every 60 s. For redundancy, install two collectors at the same site and split the monitors between them.