Community discussions

MikroTik App
 
dfroe

Munin Plugins to monitor MikroTik Wireless via SNMP

Wed May 25, 2016 2:02 am

For those who might be interested, I have written a few Munin Plugins to provide some more detailed wireless monitoring of MikroTik devices.
The plugins solely rely on standard SNMP and use MikroTik MIB.
Using SNMPv3 with AuthPriv you can securely monitor devices even over insecure links.
If you are familiar with the MikroTik MIB you should be able to understand what these plugins will do.
Probably not the best coding style but it does the job and if you are familiar with perl/munin you should find your way around.
Feel free to use and/or modify them like you want.

List of included plugins:
  • snmp__mtrx_ap_ccq: CCQ (%) for each interface of AP.
  • snmp__mtrx_ap_ccq_if_: CCQ (%) for a specific interface of AP.
  • snmp__mtrx_ap_clients: Number of connected clients for each interface of AP.
  • snmp__mtrx_ap_clients_if_: Number of connected clients for a specific interface of AP.
  • snmp__mtrx_ap_noise: Noise Floor (dBm) of each interface of AP.
  • snmp__mtrx_ap_noise_if_: Noise Floor (dBm) of a specific interface of AP.
  • snmp__mtrx_sta_rate_if_: Tx/Rx Rate of a specific interface on a Station.
  • snmp__mtrx_sta_strength: Signal Strength (dBm) for each interface on Station.
  • snmp__mtrx_sta_strength_if_: Signal Strength (dBm) for a specific interface on Station.
  • snmp__mtrx_rtab_bps: Send/Recv bps for each client on a AP.
  • snmp__mtrx_rtab_pps: Send/Recv pps for each client on a AP.
  • snmp__mtrx_rtab_rate: Rx/Tx rate for each client on a AP.
  • snmp__mtrx_rtab_signal: Signal Noise Ratio (SNR dB) for each client on a AP.
  • snmp__mtrx_rtab_strength: Signal Strength (dBm) for each client on a AP.
You do not have the required permissions to view the files attached to this post.
Last edited by dfroe on Wed May 25, 2016 2:07 am, edited 1 time in total.
 
dfroe

Munin Plugins to monitor MikroTik Wireless via SNMP

Wed May 25, 2016 2:05 am

See attachments for some example screenshots.
You do not have the required permissions to view the files attached to this post.
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Munin Plugins to monitor MikroTik Wireless via SNMP

Fri Jun 17, 2016 11:47 am

Hello,

I'm interested on the CCQ OID's you used. Would you be so kind to let me know which OID you use for the RX/TX CCQ? Do you look for them in the client or in the AP?  When I snmpget the values supposed to have CCQ information I always get "0".  In fact, Mikrotik support has told me that there's no way to get CCQ via SNMP.

Thank you!
 
dfroe

Re: Munin Plugins to monitor MikroTik Wireless via SNMP

Tue Jun 21, 2016 12:04 am

Would you be so kind to let me know which OID you use for the RX/TX CCQ?
I am querying OID .1.3.6.1.4.1.14988.1.1.1.3.1.10 on AP to get Overall Tx CCQ for a certain wlan interface.
After reading the MikroTik SNMP MIB I'd say that's the only CCQ value you can get via SNMP.
If you need specific details about certain clients, you are probably better with polling signal strength etc. for each connected client on AP (.1.3.6.1.4.1.14988.1.1.1.2.1.12-18).
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Munin Plugins to monitor MikroTik Wireless via SNMP

Tue Jun 21, 2016 10:50 am

I am querying OID .1.3.6.1.4.1.14988.1.1.1.3.1.10 on AP to get Overall Tx CCQ for a certain wlan interface.
I always get 0 on that OID. RouterOS versions range from 6.27 to latests betas using wireless-fp/wireless-cm2 packages and nv2. Which ones do work for you?
 
dfroe

Re: Munin Plugins to monitor MikroTik Wireless via SNMP

Tue Jun 21, 2016 5:47 pm

I am querying OID .1.3.6.1.4.1.14988.1.1.1.3.1.10 on AP to get Overall Tx CCQ for a certain wlan interface.
I always get 0 on that OID. RouterOS versions range from 6.27 to latests betas using wireless-fp/wireless-cm2 packages and nv2. Which ones do work for you?
[XXX] > sys routerboard print
       routerboard: yes
             model: 922UAGS-5HPacT
     firmware-type: qca9550
  factory-firmware: 3.17
  current-firmware: 3.33
  upgrade-firmware: 3.33
[XXX] > sys package print
Flags: X - disabled
 #   NAME                                                                                VERSION                                                                               SCHEDULED
 0   routeros-mipsbe                                                                     6.35.4
 1   system                                                                              6.35.4
 2 X wireless-cm2                                                                        6.35.4
 3   ipv6                                                                                6.35.4
 4   wireless-fp                                                                         6.35.4
 5   hotspot                                                                             6.35.4
 6   dhcp                                                                                6.35.4
 7   mpls                                                                                6.35.4
 8   routing                                                                             6.35.4
 9   ppp                                                                                 6.35.4
10   security                                                                            6.35.4
11   advanced-tools                                                                      6.35.4
12   ntp                                                                                 6.35.4
Do you get CCQ via CLI? Have you tried 802.11 instead ov Nv2? Just to see whether it is related to that. I am using 802.11 because of better performance with ac.
[XXX] > interface wireless monitor 0 once
                 status: running-ap
                channel: 5660/20-Ce/ac(10dBm)
      wireless-protocol: 802.11
            noise-floor: -103dBm
         overall-tx-ccq: 100%
     registered-clients: 1
  authenticated-clients: 1
       current-distance: 1
            wmm-enabled: yes
    notify-external-fdb: no
[XXX] > interface wireless monitor 1 once
                  status: connected-to-ess
                 channel: 2472/20/gn(0dBm)
       wireless-protocol: 802.11
                 tx-rate: 57.7Mbps-20MHz/1S/SGI
                 rx-rate: 6Mbps
                    ssid: XXX
                   bssid: XXX
              radio-name: XXX
         signal-strength: -74dBm
     signal-strength-ch0: -74dBm
      tx-signal-strength: -80dBm
  tx-signal-strength-ch0: -80dBm
             noise-floor: -106dBm
         signal-to-noise: 32dB
                  tx-ccq: 63%
                  rx-ccq: 81%
            p-throughput: 47350
          overall-tx-ccq: 63%
   authenticated-clients: 1
        current-distance: 1
                wds-link: no
                  bridge: no
                 nstreme: no
            framing-mode: none
        routeros-version: 6.35.4
                 last-ip: XXX
     802.1x-port-enabled: yes
     authentication-type: wpa2-psk
              encryption: aes-ccm
        group-encryption: aes-ccm
   management-protection: no
             compression: no
             wmm-enabled: yes
       current-tx-powers: 1Mbps:0(0/0),2Mbps:0(0/0),5.5Mbps:0(0/0),11Mbps:0(0/0),6Mbps:0(0/0),9Mbps:0(0/0),12Mbps:0(0/0),18Mbps:0(0/0),24Mbps:0(0/0),36Mbps:0(0/0),48Mbps:0(0/0),54Mbps:0(0/0),
                          HT20-0:0(0/0),HT20-1:0(0/0),HT20-2:0(0/0),HT20-3:0(0/0),HT20-4:0(0/0),HT20-5:0(0/0),HT20-6:0(0/0),HT20-7:0(0/0)
     notify-external-fdb: no
Maybe create a new thread or raise a support ticket with these information.
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Munin Plugins to monitor MikroTik Wireless via SNMP

Fri Jun 24, 2016 2:58 pm

I can confirm that the OID .1.3.6.1.4.1.14988.1.1.1.3.1.10 for CCQ only works if wireless protocol is plain 802.11. It returns 0 otherwise.
Many thanks for the detailed information!
 
Gombeen666
Member Candidate
Member Candidate
Posts: 224
Joined: Tue Jun 25, 2019 5:33 pm

Re: Munin Plugins to monitor MikroTik Wireless via SNMP

Tue Jan 11, 2022 11:12 pm

I can confirm that the OID .1.3.6.1.4.1.14988.1.1.1.3.1.10 for CCQ only works if wireless protocol is plain 802.11. It returns 0 otherwise.
Many thanks for the detailed information!
An old post !
But has anyone been able to get CCQ graphing to work with NV2 to Zabbix ?

Who is online

Users browsing this forum: No registered users and 2 guests