SNMP
🎯 Purpose
Enable the Watchman agent to collect network information via the SNMP protocol.
🐧 For Linux
1. Install the SNMP daemon
# Update the package list
sudo apt-get update
# Install the snmpd package
sudo apt-get install snmpd
2. Configure the SNMP configuration file
sudo nano /etc/snmp/snmpd.conf
- Set the SNMP community string (e.g.,
public
) - Allow the IP addresses from which the agent will query
- Restart the service:
sudo systemctl restart snmpd
3. Open the SNMP port
sudo ufw allow 161/udp
For Windows
1. Enable the SNMP service
- Go to Control Panel → Programs and Features
- Click Turn Windows features on or off
- Check SNMP Service, then install
2. Configure the SNMP service
- Open
services.msc
- Double-click SNMP Service → Security tab
- Add the SNMP community string (e.g.,
public
) - Allow specific IP addresses
- Restart the service
3. Configure the firewall
- Open Windows Defender Firewall with Advanced Security
- Create an inbound rule to allow UDP traffic on port 161
🧠 Proper SNMP configuration ensures smooth network data collection by the Watchman agent.