Felipe Oliveira do Rosario
unread,Jul 17, 2023, 4:13:56 PM7/17/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Hi everyone, I'm trying to use generator.yaml for Juniper or Fortigate and with version 3 I'm getting the following error:
ts=2023-07-17T18:14:53.048Z caller=main.go:136 level=error msg="Error generating config netsnmp" err="unsupported config version"
Honestly, I don't know where I'm going wrong, I would like your help because with this same configuration using version 2 I can generate the snmp.yaml as expected for both Juniper and Fortigate, Cisco, etc, but for security reasons I need to use snmpv3, and when I try to use it I always get the same error.. can you please help me? Follow my example file!
At first I thought it was the indentation, but it's not because with versions 1 and 2 it works normally.
Note: Remembering that all my devices already have snmp enabled!
---
# The generator config format version.
auths:
v3:
version: 3
username: xxxx
password: xxxx
auth_protocol: SHA
priv_protocol: AES
security_level: authPriv
priv_password: xxxx
modules:
juniper:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.2.2.1.2
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1
overrides:
ifAlias:
ignore: true
ifDescr:
ignore: true
ifName:
ignore: true
ifType:
type: EnumAsInfo