Did you setup snmp_exporter?

On Sat, Mar 13, 2021, 3:32 AM Shashidhar <[email protected]> wrote:

> 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
> <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*
>
> --
> 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 [email protected].
> 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
> <https://groups.google.com/d/msgid/prometheus-users/CAMJ%2BjPCZ7VRxNNpKgc5g4BDoAZ%2BkU%3DN%2BFjJOLod%2BuivcxbeqEw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAAMAnz6qRkMr5nkacRnGkbsKxwTxXbBYNKAkRtEN0u3VaSssVA%40mail.gmail.com.

Reply via email to