Devices can tell Netlens when something happens, instead of waiting to be asked. A switch that loses a link, a UPS that goes on battery or a router that logs an error becomes an event on that device: it shows on the device page, can be sent through your alert channels, and goes to log forwarding.
Switching it on
Open Settings → Device messages (traps, syslog). Both listeners are off until you switch them on.
| Port | Accepts | |
|---|---|---|
| SNMP traps | UDP 1162 | SNMP v1 and v2c traps, and v2c informs (Netlens acknowledges them). SNMP v3 traps are not supported. |
| Syslog | UDP 1514 | RFC 3164 and RFC 5424 messages |
The ports are high ones on purpose: the standard ports 162 and 514 need extra privileges. Point your devices at the Netlens address and these ports. When Netlens runs with Docker bridge networking instead of host networking, publish the two UDP ports.
What happens to a message
- Traps are accepted only with one of the community names you list (the default is
public). Link down and link up name the interface, restarts and authentication failures have their own wording, a UPS running on battery and spanning tree changes are recognised, and any other trap shows its identifier and values. - Syslog messages become events only when they come from a device Netlens knows and are at or above the severity you choose (the default is warning). The rest are counted and dropped, so a chatty device cannot bury the log.
- The sender is matched to a device by its IP address. A syslog host name is tried when the address is unknown, and a v1 trap uses its own agent address when it was relayed.
- A sender is limited to 60 events a minute.
The events
| Event | Meaning |
|---|---|
| Link down / Link up | A device reports that an interface went down or came back |
| Device restarted | A cold or warm start |
| SNMP trap | Any other trap (UPS on battery, spanning tree change, vendor alarms) |
| Device log | A syslog message at or above your severity |
Pick them in Settings → Alert channels like any other event. Link down is selected for new channels.
Hardware sensors and vendor readings
When you set up health monitoring over SNMP for a switch, router, NAS or server, two more groups can be read:
- Hardware sensors (the standard sensor table): temperatures, fan speeds and voltages, and a Fan or power supply problem alert when a fan stops (critical) or a sensor reports a failure (warning).
- Vendor-specific readings: APC UPS (battery, runtime, temperature, load) and MikroTik (voltage, board and CPU temperature, fans). They come from the vendor’s MIB documentation and have been tested against simulated devices; a device that does not answer a value contributes nothing.
All of them are also in the Prometheus export.