SNMP exporter not working

I’m going crazy. Checked all twice and more but I always receive this alert:

casaos@CasaOS:~$ sudo systemctl status snmp_exporter
● snmp_exporter.service - Mikrotik SNMP Exporter
     Loaded: loaded (/etc/systemd/system/snmp_exporter.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2025-02-16 06:10:54 EST; 5s ago
    Process: 70042 ExecStart=/etc/prometheus/snmp_exporter/snmp_exporter --config.file=/etc/prometheus/snmp_exporter/snmp.yml (code=exited, statu>
   Main PID: 70042 (code=exited, status=1/FAILURE)
        CPU: 42ms

Feb 16 06:10:54 CasaOS systemd[1]: Started Mikrotik SNMP Exporter.
Feb 16 06:10:54 CasaOS snmp_exporter[70042]: ts=2025-02-16T11:10:54.675Z caller=main.go:148 level=info msg="Starting snmp_exporter" version="(ver>
Feb 16 06:10:54 CasaOS snmp_exporter[70042]: ts=2025-02-16T11:10:54.676Z caller=main.go:149 level=info build_context="(go=go1.19.3, user=root@51d>
Feb 16 06:10:54 CasaOS snmp_exporter[70042]: ts=2025-02-16T11:10:54.699Z caller=main.go:157 level=error msg="Error parsing config file" err="yaml>
Feb 16 06:10:54 CasaOS systemd[1]: snmp_exporter.service: Main process exited, code=exited, status=1/FAILURE
Feb 16 06:10:54 CasaOS systemd[1]: snmp_exporter.service: Failed with result 'exit-code'.

Error parsing config file

could you help me to understand which is the problem?

Like pointed out above there seems to be a problem with your config file /etc/prometheus/snmp_exporter/snmp.yml

Try running it through a YAML verifier (you can find them online) or try posting it here (replace any passwords or sensitive info).

This morning I’ve checked and fixed the .yml file. Now I’m not able to see any data into dashboard.
I 've issued another thread about that