By default SNMP agent is disabled on all ECS nodes for public access. If we need to monitor our ECS servers using SNMP we will need to make some small config changes to enable it.

First of all we will need to edit file /etc/snmp/snmpd.conf and add there the following line right after lines starting with com2sec:

agentaddress udp:161,tcp:161

Adding this line will enable SNMP agent with TCP and UDP protocols on the node SNMP agents.

After making this change we will need to restart snmp service:

# sudo systemctl restart snmpd

Checking if everything is ok using netstat command (can be used also ss command) is the final step:

# sudo netstat -lntup | grep snmp
admin@node5:~> sudo netstat -lntup | grep snmp
tcp        0      0 0.0.0.0:161             0.0.0.0:*               LISTEN      80959/snmpd
udp        0      0 0.0.0.0:161             0.0.0.0:*                           80959/snmpd

Need help with storage monitoring or SNMP integration?
→ Check out our Security Analytics Services

Categories: Blog

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *