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.
jin lukexjin schrieb am Freitag, 19. Januar 2024 um 08:21:48 UTC+1:
> 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, <[email protected]> wrote:
>>
>>> Thanks. Do you know how I can pass the username and password for SNMPv3
>>> to snmp_exporter, as I would do in snmpwalk?
>>
>>
>> See
>> https://github.com/prometheus/snmp_exporter/tree/master/generator#file-format
>>
>>
>>>
>>>
>>> On 15/12/2017 at 5:16 PM, "Ben Kochie" <[email protected]> wrote:
>>
>> Yes, v1, v2c, v3 are all supported.
>>>
>>> On Dec 15, 2017 17:45, "Adrian Lewis" <[email protected]> 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 [email protected].
>>>> To post to this group, send email to [email protected].
>>>
>>>
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/prometheus-users/18d702ce-372b-40de-85ac-483014f6c915%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/prometheus-users/18d702ce-372b-40de-85ac-483014f6c915%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>>
>> 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 post to this group, send email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/prometheus-users/20171217174415.350DE400FF%40smtp.hushmail.com
>>>
>>> <https://groups.google.com/d/msgid/prometheus-users/20171217174415.350DE400FF%40smtp.hushmail.com?utm_medium=email&utm_source=footer>
>>> .
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Brian Brazil
>> www.robustperception.io
>>
>
--
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/6bcfb447-bf7e-43c6-8ea8-e44d4ef9543en%40googlegroups.com.