SNMP error-Please Help

894 views
Skip to first unread message

Shashidhar

unread,
Mar 13, 2021, 4:32:56 AM3/13/21
to Prometheus Users
Hi Team,

I am new to the Prometheus tool, I was trying to get the metrics of one of the node in network  over SNMP but i am getting an error below highlighted in bold letters. please help:((.  

Target Node is juniper Ex switch

snmp (0/1 up)
Endpoint State Labels Last Scrape Scrape Duration Error
http://localhost:9116/snmp
module="if_mib"target="10.219.41.204" DOWN
instance="10.219.41.204"job="snmp"
4m 8s 5.0s Get "http://localhost:9116/snmp?module=if_mib&target=10.219.41.204": context deadline exceeded

BTW-the SNMPWALK to 10.219.41.204 is successful


root@ubuntu-16-04-4-server-amd64:~# snmpwalk -v2c -cSNMP 10.219.41.204
iso.3.6.1.2.1.1.1.0 = STRING: "Domain, Inc. ex4300-32f Ethernet Switch, kernel JUNOS 19.4R3.11, Build date: 2020-10-08 21:43:24 UTC Copyright (c) 1996-2020 Domain, Inc."
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.2636.1.1.1.2.63
iso.3.6.1.2.1.1.3.0 = Timeticks: (481589) 1:20:15.89
iso.3.6.1.2.1.1.4.0 = ""
iso.3.6.1.2.1.1.5.0 = STRING: "hosname..domain.net
iso.3.6.1.2.1.1.6.0 = ""

below is my SNMP config in prometheus.yml

- job_name: 'snmp'
    metrics_path: /snmp
    params:
      module: [if_mib]
    static_configs:
      - targets:
        - 10.219.41.204
          # SNMP device - add your IPs here
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: localhost:9116

Thanks In Advance
Shashi

metroplex2850

unread,
Mar 13, 2021, 11:14:20 AM3/13/21
to Shashidhar, Prometheus Users
Did you setup snmp_exporter?

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAMJ%2BjPCZ7VRxNNpKgc5g4BDoAZ%2BkU%3DN%2BFjJOLod%2BuivcxbeqEw%40mail.gmail.com.

Shashidhar

unread,
Mar 13, 2021, 9:39:41 PM3/13/21
to metroplex2850, Prometheus Users
Yes, the SNMP exporter is up and running

EndpointStateLabelsLast ScrapeScrape DurationError
http://localhost:9116/metricsUP
instance="localhost:9116"job="SNMP_EXPORTER"
4m 0s1.933ms

Shashidhar

unread,
Mar 30, 2021, 3:03:55 AM3/30/21
to metroplex2850, Prometheus Users
kindly help with this query.
thanks in advance

Pratik Khandelwal

unread,
Apr 6, 2021, 9:46:20 AM4/6/21
to Prometheus Users
Hello,

were you able to resolve the issue, I am currently facing the same issue, can you please let me know how did you fix it?

Shashidhar

unread,
Apr 6, 2021, 10:09:15 AM4/6/21
to Pratik Khandelwal, Prometheus Users
I am still having the same and looking for some help here.

@experts: could you please help us in resolving this issue?

thanks in advance :)



Venkatesh Goud

unread,
Apr 10, 2021, 10:04:04 AM4/10/21
to Prometheus Users
Hi All,

what I understand is that increasing the scrape interval to switch resolves this problem.
could you all please increase the scrape interval to more example 60 seconds and check?

Reply all
Reply to author
Forward
0 new messages