How to enable SNMP on Ubuntu 18.04 Linux
FOLLOW- Install SNMP
sudo apt install snmpd snmp libsnmp-dev
When prompted, type “Y” to continue - Make a backup of the original snmpd.conf file:
sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
- Edit the snmpd.conf file:
sudo vi /etc/snmp/snmpd.conf
- Locate the following line:
#agentAddress udp:161,udp6:[::1]:161
- Uncomment and modify it to match the example below. This will enable SNMP to listen on all interfaces:
agentAddress udp:161
- Uncomment the following line:
#rocommunity public localhost
- Modify to set your desired community string and specify the IP address of your Auvik collector - e.g.
rocommunity v2string 10.0.21.83
- Save & exit the file
- Reload the snmpd service:
sudo service snmpd restart
Tidak ada komentar:
Posting Komentar