snmp exporter & snmpv3

1,589 views
Skip to first unread message

Adrian Lewis

unread,
Dec 15, 2017, 11:45:03 AM12/15/17
to Prometheus Users
Does SNMP exporter support SNMP version 3, as I would like to pass a username and password to the SNMP target/agent? 

Thanks

Aidy

Ben Kochie

unread,
Dec 15, 2017, 12:16:51 PM12/15/17
to Adrian Lewis, Prometheus Users
Yes, v1, v2c, v3 are all supported.

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/18d702ce-372b-40de-85ac-483014f6c915%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adrian...@hushmail.com

unread,
Dec 17, 2017, 12:44:18 PM12/17/17
to Ben Kochie, Prometheus Users
Thanks. Do you know how I can pass the username and password for SNMPv3 to snmp_exporter, as I would do in snmpwalk?  


On 15/12/2017 at 5:16 PM, "Ben Kochie" <sup...@gmail.com> wrote:
Yes, v1, v2c, v3 are all supported.
On Dec 15, 2017 17:45, "Adrian Lewis" <adrian...@hushmail.com> wrote:
Does SNMP exporter support SNMP version 3, as I would like to pass a username and password to the SNMP target/agent? 

Thanks

Aidy

--
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 post to this group, send email to promethe...@googlegroups.com.

Brian Brazil

unread,
Dec 17, 2017, 12:49:24 PM12/17/17
to adrian...@hushmail.com, Ben Kochie, Prometheus Users
On 17 December 2017 at 17:44, <adrian...@hushmail.com> wrote:
Thanks. Do you know how I can pass the username and password for SNMPv3 to snmp_exporter, as I would do in snmpwalk?  



On 15/12/2017 at 5:16 PM, "Ben Kochie" <sup...@gmail.com> wrote:
Yes, v1, v2c, v3 are all supported.
On Dec 15, 2017 17:45, "Adrian Lewis" <adrian...@hushmail.com> wrote:
Does SNMP exporter support SNMP version 3, as I would like to pass a username and password to the SNMP target/agent? 

Thanks

Aidy

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/20171217174415.350DE400FF%40smtp.hushmail.com.

For more options, visit https://groups.google.com/d/optout.



--

jin lukexjin

unread,
Jan 19, 2024, 2:21:48 AM1/19/24
to Prometheus Users
So,If I want to use SNMP v3,I need regenerator snmp.yml,I can not edit the default snmp.yml,yes?
In generator.xml auth part, v1 ,v2c,v3 all is there ok? 

在2017年12月18日星期一 UTC+8 01:49:24<Brian Brazil> 写道:
On 17 December 2017 at 17:44, <adrian...@hushmail.com> wrote:
Thanks. Do you know how I can pass the username and password for SNMPv3 to snmp_exporter, as I would do in snmpwalk?  



On 15/12/2017 at 5:16 PM, "Ben Kochie" <sup...@gmail.com> wrote:
Yes, v1, v2c, v3 are all supported.
On Dec 15, 2017 17:45, "Adrian Lewis" <adrian...@hushmail.com> wrote:
Does SNMP exporter support SNMP version 3, as I would like to pass a username and password to the SNMP target/agent? 

Thanks

Aidy

--
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 post to this group, send email to promethe...@googlegroups.com.

--
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 post to this group, send email to promethe...@googlegroups.com.

Alexander Wilke

unread,
Jan 20, 2024, 3:44:17 AM1/20/24
to Prometheus Users
If you have a working SNMP.yml thrn Just add this at the top of the File

CustomName:
    version: 3
    security_level: authPriv
    username: "username"
    auth_protocol: SHA
    password: 'password'
    priv_protocol: AES

The "CustomName" is what you use in Prometheus.yml as auth Module.
If you use Cisco devices you have to use
AES-128C or AES-256C

But  est way is to use Generator and Geräte fresh snmp.yml.
In Generator add the Same Part for snmpv3 at the top of the File.

Brian Candler

unread,
Jan 20, 2024, 8:56:25 AM1/20/24
to Prometheus Users
> If you have a working SNMP.yml thrn Just add this at the top of the File

But indented and nested under the "auths" key.

> f you use Cisco devices you have to use
> AES-128C or AES-256C

That is not true. You can use "AES" as normal, or you can use "AES192C" or "AES256C".  There is no "AES-128C" or similar.
Reply all
Reply to author
Forward
0 new messages