Page 1 of 1

SNMP setup on Miktotik with zabbix

Posted: Sat Apr 02, 2022 8:30 pm
by uberwebguru
I am trying to setup SNMP so i can monitor my mikrotik networking devices with zabbix
I believe i did everything right but getting "No SNMP data collection" error
Can someone please tell me what i am missing?


Here is my setup on mikrotik
[admin@MikroTik] > snmp community print 
Flags: * - DEFAULT; X - DISABLED
Columns: NAME, ADDRESSES, SECURITY, READ-ACCESS, WRITE-ACCESS
#    NAME             ADDRESSES  SECURITY  READ-ACCESS  WRITE-ACCESS
0 *X public           ::/0       none      yes          no          
1    testandtest  ::/0       none      yes          no  
        
[admin@MikroTik] > snmp print 
          enabled: yes
          contact: ccr2004@mikrotik.local
         location: 
        engine-id: 
      src-address: ::
      trap-target: 
   trap-community: testandtest
     trap-version: 1
  trap-generators: temp-exception

and here is setup on zabbix

Image

Re: SNMP setup on Miktotik with zabbix  [SOLVED]

Posted: Sun Apr 03, 2022 10:06 am
by holvoetn
Check your firewall settings.
Most likely udp/161 is not being allowed (it isn't by default).

Re: SNMP setup on Miktotik with zabbix

Posted: Tue Apr 05, 2022 2:07 am
by uberwebguru
Check your firewall settings.
Most likely udp/161 is not being allowed (it isn't by default).
I see, yeah i didn't realize i have to allow it
So i have to add a firewall rule to allow it?
or i have to open port somewhere?

mind helping with command to allow it?
or where in documentation they have this

Re: SNMP setup on Miktotik with zabbix

Posted: Tue Apr 05, 2022 7:17 am
by uberwebguru
@holvoetn got it to work now
thanks to you

i added firewall rule to accept all from the zabbix address to CCR address
and another one rule to accept all from the CCR address to zabbix address

and boom i can now see network graphs already
using SNMPv3!!!

Re: SNMP setup on Miktotik with zabbix

Posted: Sun Aug 21, 2022 11:08 pm
by PackElend
Hi,
I'm getting into Zabbix right now as well.
May some experienced folk could answer some of my questions :)
  1. Do you know the purpose of
    temp-exception
    ?
  2. I tried to get SNMPv3 working without auth etc. is that possible at all?
  3. When is it necessary to set
    trap-target
    ?
  4. luckelly there is a template for pretty much any MT device but the dashboard is very simple. Is there any community template you would recommend?
thank you
Stefan