I really need assistance in setting up SNMP to work with Zabbix on my dashboard. I have set up an Ubuntu 18.04 Zabbix server and have added over 18 agents. All virtual machines with Zabbix agents and they are working great!
Now I have gotten to the point where I need to have the AP's set up for Zabbix. I have followed the instructions and did the following so far:
sudo apt-get update
sudo apt-get install snmp snmp-mibs-downloader
sudo apt-get update
sudo apt-get install snmpd
I opened sudo nano /etc/snmp/snmp.conf
and commented the following line:
#mibs :
Then I went into the configuration file:
sudo nano /etc/snmp/snmpd.conf
And from there I made changes to the following lines:
Listen for connections from the local system only
agentAddress udp:127.0.0.1:161 <--- commented this part.
Listen for connections on all interfaces (both IPv4 and IPv6)
agentAddress udp:161,udp6:[::1]:161 <--remove the comment from this line to make it work.
Then I set up the Zabbix dashboard side. I will attach pictures of the set-up.
1st zabbix dashboard menu:
2nd dashboard set-up menu:
I get the following error:
I will also attach picture that shows my meraki access point set-up.
Meraki AP SNMP set-up:
Lastly, I will add a picture that shows the Linux Zabbix server terminal set up on that config file.
Linux Zabbix Server:
I am stumped and cannot figure out why Zabbix still throwing out that error.
I have gone thru the Zabbix documentation but cannot find a solution to my problem.
Take these 2 steps :
1- install and config snmpd
2- install MIBs and config snmp conf file (not snmpd file)
Step 1: Run the following commands in the terminal:
Update all packages: sudo apt-get update
Install SNMP: sudo apt-get install snmpd
Edit snmpd.conf with text editor of your choice, we will be using nano: sudo nano /etc/snmp/snmpd.conf
It should look like this:
"#Listen for connections from the local system only"
"#agentAddress udp:127.0.0.1:161"
"Listen for connections on all interfaces (both IPv4 and IPv6"
"agentAddress udp:161,udp6:[::1]:161"
(#'s are important!!! the first two should have # and the last two should not!)
Configure rocommunity: rocommunity public (or whatever you like to use)
save and exit (ctrl+x , Yes , Enter)
Restart the SNMPD service: sudo service snmpd restart
Step 2:
sudo apt-get install snmp-mibs-downloader
sudo download-mibs
To have the new MIBs recognized by net-snmp, edit /etc/snmp/snmp.conf file as follows:
to test run :
snmptranslate -Tp on Terminal and youll get the MIB Trees
Go back to Zabbix you see it's working now !!!! :)