Yes correct thats the one

On Sun, Apr 28, 2024 at 5:43 PM Alexander Wilke <[email protected]>
wrote:

> Is this MIB in the MIBs folder?
> https://www.circitor.fr/Mibs/Mib/A/A10-AX-MIB.mib
>
> Mehran Saeed schrieb am Samstag, 27. April 2024 um 21:08:54 UTC+2:
>
>> Thanks for responding.
>>
>> below are the two MIBs for memory I am trying to use:
>>
>> memory usage: 1.3.6.1.4.1.22610.2.4.1.2.2
>>
>> Field Name : axSysMemoryUsage
>> Field Type: Integer32
>> Field Status : current
>> Description : The usage memory(KB).
>> OID : 1.3.6.1.4.1.22610.2.4.1.2.2
>>
>> memory total: 1.3.6.1.4.1.22610.2.4.1.2.1
>>
>>   Field Name : axSysMemoryTotal
>> Field Type: Integer32
>> Field Status : current
>> Description : The total memory(KB).
>> OID : 1.3.6.1.4.1.22610.2.4.1.2.1
>>
>>
>> I used the cmd below to get the generator executable file:
>>
>> make generate
>>
>> then to run the generator ran this cmd:
>>
>> ./generator generate   -m /snmp_exporter/generator/mibs  -g
>> /generator/generator.yml   -o /snmp_exporter/mib/snmp.yml
>>
>>
>> I tried changing the generator.yml file by mentioning just object id and
>> OID but no luck
>>
>> ---
>> 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:
>>
>>   a10:
>>     walk:
>>       - 1.3.6.1.4.1.22610.2.4.1.2.1
>>
>>
>> On Saturday, April 27, 2024 at 7:22:32 PM UTC+1 Alexander Wilke wrote:
>>
>>> 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 <[email protected]> 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 <[email protected]>
>>>>> 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 [email protected].
>>>>>> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/05d6da1d-c5a7-47b4-9dcf-670d3ffc330cn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/05d6da1d-c5a7-47b4-9dcf-670d3ffc330cn%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAACWPerYghcat%2BDxR_XBn%3D4eDt7DnNvytk6HMN6whAVK%2BMGbJw%40mail.gmail.com.

Reply via email to