0

I am a newbie to building a monitor system using Prometheus and SNMP exporter, I have succeeded get metric from the physical interface, but I want to monitor VLAN on a trunk port, is that possible ? and how ?

4
  • 2
    This totally depends on the availability of these counters in SNMP, which varies per vendor, device and operating system.
    – Teun Vink
    Aug 4, 2020 at 5:49
  • I am using cisco Nexus N3K-3064PQ and I am trying to find which OID can provide metric for query Aug 4, 2020 at 6:00
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Dec 16, 2020 at 23:25
  • Do you have the MIBs use an snmp browser load your MIB file and find it. Jan 2, 2021 at 11:55

2 Answers 2

0

Monitoring a VLAN inside a trunk port doesn't make too much sense. Usually, you monitor the physical link (trunk) and the SVI (VLAN-IP binding). If you want to monitor VLAN connectivity across multiple switches, that's highly software dependent.

5
  • Exactly that I want, I want to monitor VLAN traffic across multiple devices, I have many servers connected to separate ports, and they can use the same VLAN (sometimes they have Internet-VLAN) so I want to monitor separate Local VLAN traffic and Internet VLAN traffic Aug 5, 2020 at 2:36
  • If you want to actually monitor traffic you'd need something like NetFlow or sFlow. RMON could also be used but it's only on the interface level.
    – Zac67
    Aug 5, 2020 at 6:14
  • Does Netflow (sFlow) can monitor VLAN traffic ? Aug 6, 2020 at 4:10
  • Sure. NetFlow and sFlow sample an adjustable fraction of a port's traffic and send a digest to a data collector. Then you can run any analysis you want (and that your software allows) on it.
    – Zac67
    Aug 6, 2020 at 6:07
  • Thanks, let me try Aug 6, 2020 at 7:19
0

I don't know if your N3K-3064PQ has the counters you want. My guess is it doesn't. However, you can check for yourself by using snmpwalk or similar. Some relevant types of ifName values for an example VLAN 5 are below; and note you'll need to confirm they have a non-zero/incrementing ifHCInOctets or ifHCOutOctets as well:

  • VLAN-5 on Cisco devices is likely to be a layer-2 interface which may have counters
  • Vlan5 is generally a layer-3 SVI
  • GigabitEthernet0/1.5 may be a router interface with a sub-interface 5 that you may have configured for e.g. dot1q 5

This older thread may help as well: How to Monitor Vlan Traffic?

1
  • Thanks, I tried to use snmpwalk with ifHCOutOctets, and that only works with layer-3 SVI and can't query layer-2 VLAN. When I trying to query metric with layer-3 SVI, I have a problem that my metric usually get some random time value is null link, what happened ? Aug 5, 2020 at 2:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.