...
Obtain the SNMP v3 configuration file (eyer_telegraf_snmp_generic_v3.conf).
Open the configuration file in a text editor.
Edit the following fields with your SNMP credentials:
Code Block language ini sec_name = "your_username" auth_protocol = "SHA" auth_password = "your_auth_password" sec_level = "authPriv" priv_protocol = "AES" priv_password = "your_private_password" agents = [ "udp://192.168.1.1" ]
Ensure the protocols match your device’s settings (options are listed in the config file).
Save the file.
...
Open PowerShell or Command Prompt.
Navigate to the Telegraf installation directory (install folder might be different):
Code Block language cmd cd "C:\Program Files\InfluxData\telegraf\telegraf-1.33.1"
Run Telegraf with the SNMP configuration file:
Code Block language cmd .\telegraf.exe --config eyer_telegraf_snmp_generic_v3.conf
If everything is configured correctly, Telegraf should start collecting SNMP data.
Check for any error messages. If you see:
Code Block language cmd Error running agent: could not initialize input inputs.snmp: initializing table Octets_field: initializing field: translating: exec: "snmptranslate": executable file not found in %PATH%
- Ensure Net-SNMP / Gosmi is properly installed and restart your machine.
Register the Telegraf agent as a service and start it(see instructions per OS). With Windows use
Code Block .\telegraf.exe --config "C:\Program Files\InfluxData\telegraf\eyer_telegraf_snmp_generic_v3.conf
Step 5: Verify Data Collection
...