Netlens can watch more than one network. Run a Netlens at each location (a branch office, a holiday house, a customer) and let them report to one central Netlens:
- On the central Netlens open Network → Remote sites → Add a remote site, give the location a name and copy the token (it is shown once; only a hash of it is kept).
- On the Netlens at that location open Settings → Report to a central Netlens, enter the address of the central Netlens and the token, switch it on and press Send a report now.
The remote Netlens keeps working on its own (scans, checks, health monitoring, its own alerts) and sends a report every minute: its devices, service checks, health problems and the measurements made since the last report. The connection always goes out from the remote site, so nothing there has to be reachable from outside; across the internet the central Netlens should be reachable over https:// (a plain http:// address is accepted for a server on your own network, for example through a VPN). The token is the only credential: a new one can be made at any time, which locks the old one out.
The central Netlens keeps the remote devices apart from its own (two sites may use the same address range). Each site shows its devices, service checks and health problems with graphs of their history, and raises alerts through the notification channels: a device offline or new, a service down, a health problem, and a site that stops reporting (until it reports again its devices are shown as not watched rather than all offline). Alerts also appear on the dashboard and in Prometheus (netlens_remote_site_*).
Managing a site from the central Netlens. On the page of a site, Managed from here lets you set up service checks and health monitors that run at the remote location (on its own network). The remote Netlens only accepts this when you tick Accept configuration and commands from the central Netlens in its Settings → Report to a central Netlens; what it receives is marked as managed from the central Netlens and cannot be edited there. The logins are stored encrypted on both sides and travel in the reply to the site’s report, so use https:// or a VPN. What a remote site shows is limited to what it chose to report: names, addresses, MAC addresses, vendors, ports and measurements, never passwords.
Scan now, snooze and the site’s own log. With the same tick box a site also takes commands: Scan now on the page of a site asks the remote Netlens to scan its network (it starts with the site’s next report, so within a minute). Snooze on that page holds back all alerts of the site for an hour to a week, for planned work at that location; the events are still recorded, marked as snoozed. The page also lists the recent events of the site, and warns when the clock of the remote machine is more than two minutes off from the central one (graphs would be shifted). The remote Netlens shows the same warning on its Settings page.
Removing a site. Remove on the page of a site deletes the site, its devices and checks, the graph history of both, its snooze, the configuration and commands waiting for it, and takes it out of maintenance windows and customer logins (a customer login that only saw that site is disabled, so it never turns into an unlimited one). You choose whether the alerts raised about the site stay in the history (the default) or go too, and Netlens tells you what it removed. Switch off Report to a central Netlens on the remote side, or it keeps trying with the old token. Anything that could still be left behind (for example after a crash) is found by Settings → Database → Clean up leftovers.
Managed checks can be edited: Edit next to a check or monitor in Managed from here changes its address, port, interval or alerts, without losing the saved login.
A central Netlens with a self-signed certificate. Tick Trust the certificate of the central Netlens in Settings → Report to a central Netlens: Netlens remembers the fingerprint of the certificate it sees when you save, shows it so you can compare it, and from then on accepts exactly that certificate and nothing else. If the certificate is replaced, reports stop with a clear message until you trust the new one. With a normal certificate (Let’s Encrypt, a reverse proxy) leave it off.
Maintenance windows and customer logins cover sites. A maintenance window can cover chosen remote sites (everything about them is held back during the window, including a site that stops reporting; if it is still silent when the window ends you get the normal alert). A viewer can be limited to chosen remote sites (Settings → Users & tokens → Limit to sites, business feature): a customer then signs in and sees only their own sites, with graphs, checks, events and the monthly availability, and nothing else.
Alerts and retention per site. Under Alerts and retention of this site (on the page of a site) you choose which devices raise “went offline” and “back online”: the always-on devices when the site marks any and otherwise all (the default), only the always-on devices, all devices, or none. Mute in the device list silences a single device. Service checks, health problems and a silent site are always announced. You can also choose how long the history of that site is kept here (30 days to 2 years, or the general retention of Settings → Database); older graph points and alerts of that site are removed by the weekly upkeep.
When the central Netlens cannot be reached. A remote Netlens that has failed to report for 10 minutes raises an event on its own notification channels (This Netlens cannot reach its central Netlens, with the reason) and another when the link works again, so somebody at that location hears of it. It keeps scanning and alerting on its own meanwhile. A short break that mends itself says nothing.
Everything of a site on one page. Besides the devices, checks and health, the page of a site shows the last scan, the backups and the monitored devices of that location, the details of each device (address, system, open ports, first seen) with its graphs, and Availability per month: pick a month and see, per device and per check, the availability, the number and length of outages and the time down, for all devices or only the always-on ones, with a CSV download. The figures come from the history the site reported (every 5 minutes for the last 90 days, hourly before that); time in which the site did not report at all is not counted but is listed. A remote site raises offline alerts only for its always-on devices as soon as it has marked any (phones and tablets would otherwise bury the real problems); new devices, failing checks and health problems are announced as before.