Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open PowerShell or Command Prompt.

  2. Navigate to the Telegraf installation directory (install folder might be different):

    Code Block
    languagecmd
    cd "C:\Program Files\InfluxData\telegraf\telegraf-1.33.1"
  3. Run Telegraf with the SNMP configuration file:

    Code Block
    languagecmd
    .\telegraf.exe --config eyer_telegraf_snmp_generic_v3.conf
  4. If everything is configured correctly, Telegraf should start collecting SNMP data.

  5. Check for any error messages. If you see:

    Code Block
    languagecmd
    Error running agent: could not initialize input inputs.snmp: initializing table Octets_field: initializing field: translating: exec: "snmptranslate": executable file not found in %PATH%
    1. 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.

  6. 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

Step 5: Verify Data Collection

...

If Telegraf is running without errors, wait and check if SNMP data is being collected.

...

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.

...