...
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.
Step 5: Verify Data Collection
If Telegraf is running without errors, wait and check if SNMP data is being collected.
You can confirm this by monitoring the logs in real-time.
Final Steps
...
If successful, obtain access credentials for Eyer to visualize the collected SNMP data.
...
This means that either your OS is not able to do MIB translation, or that your netsnmp is not properly installed. See “Troubleshooting” section below.
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" service install
Troubleshooting
If Net-SNMP is not working:
Check if it's listed under "Programs and Features."
Reinstall it with administrative privileges.
If Telegraf doesn’t start correctly:
Verify all credentials in the config file.
Ensure Telegraf and Net-SNMP paths are correctly set in the system.
Restart the VM / server if necessary.
...
This guide provides a structured approach to setting up SNMP monitoring with Telegraf. If issues persist, recheck the configuration and installation steps, ensuring all dependencies are correctly installed.