Collecting Cisco NetFlow metrics using snmp_exporter

641 views
Skip to first unread message

Mohammad Zahidul Alam

unread,
Feb 9, 2021, 1:28:32 AM2/9/21
to Prometheus Users
Hi all,

I'm experimenting with Prometheus for setting up new monitoring system for my company. Recently a new requirement came that we need to monitor NetFlow data of Cisco Devices. So I downloaded Cisco NetFlow MIBs and tried to generate snmp.yml using the generator. But I'm getting the following error. Can anyone help me finding what went wrong?

level=error ts=2021-02-09T06:16:58.084Z caller=main.go:130 msg="Error generating config netsnmp" err="cannot find oid '1.3.6.1.4.1.9.9.387' to walk"

My mibs are located at /usr/share/snmp/mibs/. I'm attaching the mibs and generator.yml file here.

Best regards,
Mohammad Zahidul Alam

Mohammad Zahidul Alam

unread,
Feb 9, 2021, 1:30:28 AM2/9/21
to Prometheus Users
Apparently I can't attach files to the thread. So here's just the generator file in plain text.

modules:
  cisco_netflow:
    auth:
      community: public
    max_repetitions: 25
    retries: 3
    timeout: 10s
    version: 2
    walk:
    - 1.3.6.1.4.1.9.9.387

Mohammad Zahidul Alam

unread,
Feb 9, 2021, 1:38:17 AM2/9/21
to Prometheus Users
Hi,

You can checkout the files from my github repo.

Mohammad Zahidul Alam

unread,
Feb 9, 2021, 2:01:53 AM2/9/21
to Prometheus Users
Hi,

I think the issue is resolved, I just needed to add two more mibs: CISCO-ES-STACK-MIB.mib and CISCO-SMI.mib

--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/M5cZH3xnjG0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/80d5f73b-d85f-437c-b453-d43524989ec8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages