Sample Header Ad - 728x90

SNMPD Not Starting After Adding agentAddress in Metasploitable 2

0 votes
0 answers
47 views
I am facing an issue with SNMPD in Metasploitable 2. Initially, SNMPD was running fine, but after manually adding an agentAddress line in snmpd.conf, the service fails to start. There are no error messages, and ps aux | grep snmp does not show any running process. Here are the details: 🖥️ System Information: OS: Metasploitable 2 (Ubuntu 8.04-based) SNMP Version: (default version in Metasploitable 2) Changes Made: Manually added the following line in /etc/snmp/snmpd.conf: - agentAddress udp:192.168.X.Y:161 Expected Behavior: SNMP should start and listen on 192.168.X.Y:161. Actual Behavior: SNMPD does not start, and there are no errors in logs. ⚡ What I Have Tried So Far 1. Checked for running SNMP processes: - ps aux | grep snmp -> No active SNMP process found after adding agentAddress. 2. Tried restarting SNMPD: - sudo /etc/init.d/snmpd restart --> Restarting network management services 3. Checked system logs: - sudo tail -f /var/log/syslog | grep snmp --> No errors or relevant logs found. 4. Checked if port 161 is occupied: - sudo netstat -tulnp | grep 161 --> No Output 5. Commented the agentAddress line and restarted: - \# agentAddress udp:192.168.X.Y:161 - sudo /etc/init.d/snmpd restart --> SNMPD works again when agetAddress is removed but on localhost -------------------------------------------------------------- 1. Questions for the Community 2. Is there a known issue with agentAddress binding in Metasploitable 2 (Ubuntu 8.04)? 3. Is there a different way to bind SNMPD to a specific IP without breaking the service? 4. How can I debug why SNMPD silently fails with no error logs? Any help would be appreciated! Thanks in advance. 😊
Asked by Akhilesh Prajapati (1 rep)
Feb 25, 2025, 10:08 AM
Last activity: Feb 25, 2025, 10:38 AM