You probably do not have alle required mibs in the folder.
Please Post the MIBs which you want to use and the generator command you 
used.

PS:
On top of all MIBs there are comments Like IMPORT which describes which 
other MIBs are needed.
Fürther use MIBv2 with names instead OIDs. Put the Name in the Generator 
yml Not the oid.

Mehran Saeed schrieb am Samstag, 27. April 2024 um 19:38:49 UTC+2:

> yes sure
> below are the logs whilst generating 
>
> ```
> MIBDIRS='mibs' ./generator --fail-on-parse-errors generate
> ts=2024-04-27T17:34:02.776Z caller=net_snmp.go:175 level=info msg="Loading 
> MIBs" from=mibs
> ts=2024-04-27T17:34:03.011Z caller=main.go:124 level=warn msg="NetSNMP 
> reported parse error(s)" errors=3839
> ts=2024-04-27T17:34:03.094Z caller=main.go:53 level=info msg="Generating 
> config for module" module=a10
> ts=2024-04-27T17:34:03.115Z caller=main.go:134 level=error msg="Error 
> generating config netsnmp" err="cannot find oid 
> 'axSysSecondaryVersionOnDisk' to walk
> ```
>
> Also if I try generating the if-mib objects from if-mib module they work 
> fine. 
> I need to generate mibs for A10. have put the a10 mib file in the mibs 
> directory. 
> Looks like its not able to find the OIDs for a10. 
>
>
> On Sat, Apr 27, 2024 at 10:38 AM Ben Kochie <sup...@gmail.com> wrote:
>
>> Can you post the logs of the `generator generate`? What about `generator 
>> parse_errors`?
>>
>> On Sat, Apr 27, 2024 at 11:37 AM Mehran Saeed <mehran...@gmail.com> 
>> wrote:
>>
> Hello 
>>> I am trying to generate snmp.yml from generator but it fails. its for 
>>> a10 load balancers as I needed extra mibs for CPU and memory. below is the 
>>> generator.yml config. 
>>> I have added the mib file into the correct mib directory as well. 
>>>
>>> ```
>>> ---
>>> auths:
>>>   public_v1:
>>>     version: 1
>>>   public_v2:
>>>     version: 2
>>>
>>>   prometheus_v3:
>>>     username: user
>>>     password: pwd
>>>     auth_protocol: SHA
>>>     priv_protocol: AES
>>>     security_level: authPriv
>>>     priv_password: pwd
>>>     version: 3
>>>
>>>   
>>>
>>> modules:
>>>   # Default IF-MIB interfaces table with ifIndex.
>>>   a10:
>>>     walk:
>>>       - 1.22610.2.4.1.2.2
>>>
>>>
>>>
>>>
>>>
>>>    
>>>
>>> -- 
>>> 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/3255afc8-e4cd-4260-b405-bf13047cd53fn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/prometheus-users/3255afc8-e4cd-4260-b405-bf13047cd53fn%40googlegroups.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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0da8cd69-ba90-4bcc-bf12-157e9d893e94n%40googlegroups.com.

Reply via email to