How to enable tcp in snmp config after update?

Evan Richardson

Explorer
Joined
Dec 11, 2015
Messages
76
I can't find the original thread, but for the longest time I've had issues getting SMART data over snmp. One day I figured out how to enable TCP mode by adding "tcp:161" to the snmpd config, and now i get SMART data. The problem is that whenever there's an update, it overwrites the /usr/local/etc/snmpd.conf file with a generic one only containing "udp", and librenms can't talk to it anymore until I re-add it. I tried using the aux parameters field but that errors out. Would a post-init script that does a "sed" on the config be enough? or is there a better way to do this so that my changes survive updates. An option in the UI to enable "tcp" would be nice, but will probably never happen.

Thanks!
 
Top