telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

SNMP input does not report common errors

Open smogsy opened this issue 6 years ago • 2 comments

as discussed with @danielnelson Error messages seem to be broken or non-existent for the following areas:

  • Error when no fields/tables are defined intelegraf.conf
    
  • Error if only tags are defined, (you need at least 1 check that is not tagged)
    

we may not be able to detect this in all cases at startup so this may need to be a runtime error.

  • Error if version=3 snmp is not fully configured.
    
  • OID not valid - spell an OID incorrectly does not produce error on --test cli. it stops all checks.. example i did [[inputs.snmp.table.field]] name = "octets_sent" oid = "IF-MIB::ifHCoutOctet instead of [[inputs.snmp.table.field]] name = "octets_sent" oid = "IF-MIB::ifHCOutOctet

smogsy avatar May 04 '20 07:05 smogsy

I am going to close this as snmptraslate is deprecated in telegraf and supported versions no longer use it due to performance issues. If you are having issues with recent snmp update, please open another ticket with all relevant information.

MyaLongmire avatar Jan 11 '22 19:01 MyaLongmire

This has nothing to do with snmptranslate. This is about checking the config

Hipska avatar Jan 12 '22 05:01 Hipska