Nothing really relevant: 



*ts=2024-04-15T20:42:16.248Z caller=main.go:194 level=info msg="Starting 
snmp_exporter" version="(version=0.25.0, branch=HEAD, 
revision=9c42d6c874d479314e612bca69558c81f8e26287)" 
concurrency=1ts=2024-04-15T20:42:16.248Z caller=main.go:195 level=info 
build_context="(go=go1.21.5, platform=linux/amd64, user=root@880115266f70, 
date=20231210-10:05:18, tags=netgo)"ts=2024-04-15T20:42:16.249Z 
caller=tls_config.go:274 level=info msg="Listening on" 
address=[::]:9116ts=2024-04-15T20:42:16.249Z caller=tls_config.go:277 
level=info msg="TLS is disabled." http2=false address=[::]:9116*


I also use tcpdump to see the communication between my equipments and 
prometheus and everything seems fine :
*[~]# tcpdump -i ens192 port 161*



*22:43:47.138346 IP prometheus01.com.44170 > 
swro-arte-strg-data-2.net.com.snmp:  F=r U="" E= C="" 
GetRequest(14)22:43:47.154121 IP swro-arte-strg-data-2.net.com.snmp > 
prometheus01.com.44170:  F= U="" E=_80_00_00_09_03_00_68_e5_9e_a4_00_00 
C="" Report(33) 
 
S:snmpUsmMIB.usmMIBObjects.usmStats.usmStatsUnknownEngineIDs.0=71669222:43:47.204598
 
IP prometheus01.com.44170 > swro-arte-strg-data-2.net.com.snmp:  F=apr 
U="supserver" [!scoped 
PDU]9d_5d_4e_0c_1f_26_92_e6_a6_65_0c_3a_04_b0_8e_f7_66_7d_18_97_3f_5d_84_e2_04....*



*......80 packets captured85 packets received by filter0 packets dropped by 
kernel*
Le lundi 15 avril 2024 à 22:41:24 UTC+2, Ben Kochie a écrit :

> If you use `snmp_exporter --log.level=debug`, what do the logs say?
>
> On Mon, Apr 15, 2024 at 10:38 PM Nicolas <[email protected]> wrote:
>
>> Hello, 
>> I have a strange error and I hope you can help me, or maybe there is a 
>> problem with the snmp_exporter generator in the latest version.
>>
>> I'm using snmp_exporter version 0.25.0 and prometheus 
>> My generator.yml file looks like this: 
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *auths:  cisco_v3:    security_level: authPriv    username: secret_name  
>>   password: secret    auth_protocol: SHA    priv_protocol: AES    
>> priv_password: secret    version: 3modules:  arte_mib:    walk:    - 
>> 1.3.6.1.2.1.1'    - 1.3.6.1.2.1.2.2    - 1.3.6.1.2.1.31.1.1    - 
>> 1.3.6.1.4.1.9.9.109.1.1.1.1.8    - 1.3.6.1.4.1.9.9.13.1.4    - 
>> 1.3.6.1.4.1.9.9.13.1.5    - 1.3.6.1.4.1.9.9.48.1.1.1.5    - 
>> 1.3.6.1.4.1.9.9.48.1.1.1.6    - 1.3.6.1.4.1.9.9.68.1.2.2.1.2*
>>
>> I generate my snmp.yml file without error: 
>>
>>
>>
>> *ts=2024-04-15T20:29:38.537Z caller=net_snmp.go:175 level=info 
>> msg="Loading MIBs" from=/usr/share/snmp/mibs/ts=2024-04-15T20:29:38.577Z 
>> caller=main.go:53 level=info msg="Generating config for module" 
>> module=arte_mibts=2024-04-15T20:29:38.580Z caller=main.go:68 level=info 
>> msg="Generated metrics" module=arte_mib 
>> metrics=64ts=2024-04-15T20:29:38.585Z caller=main.go:93 level=info 
>> msg="Config written" 
>> file=/etc/prometheus/snmp_generator/snmp_exporter-0.25.0/generator/snmp.yml*
>>
>> And when I push it in my prometheus (conf like this)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *  - job_name: 'arte_snmp'    scrape_interval: 1m    scrape_timeout: 50s  
>>   file_sd_configs:      - files:        - 
>> '/etc/prometheus/targets/arte.json'    metrics_path: /snmp    params:      
>> auth: [cisco_v3]      module: [arte_mib]    relabel_configs:      - 
>> source_labels: [__address__]        target_label: instance      - 
>> source_labels: [__address__]        target_label: __param_target      - 
>> source_labels: [module]        target_label: __param_module      - 
>> target_label: __address__        replacement: 127.0.0.1:9116 
>> <http://127.0.0.1:9116>  *
>> I get a server returned HTTP status 500 Internal Server Error
>> [image: 500.PNG]
>>
>>
>> Note that if, for example, I use the if_mib module and take the snmp.yml 
>> provided in the snmp_exporter, I get no error and my servers appear to be 
>> UP.
>>
>> Thanks for your help
>>
>> -- 
>> 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/711dd213-92de-4abb-911c-883c0e4535edn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/711dd213-92de-4abb-911c-883c0e4535edn%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/486dad8d-1722-4fb4-ae4e-09bc53a06dc5n%40googlegroups.com.

Reply via email to