I am using a pre-defined telegraf.conf file for multiple Ubiquiti access points. This is defined here
The problem I am having is that these don’t show up in Chronograf under hosts. At first, I suspected this was because I had set
omit_hostname = true. I did this because everything was being tagged with the name of the host where telegraf is running, not the name of the access point. However, when I set this to
false, I still wasn’t getting the access points on the Chronograf hosts tab.
Is it possible to define multiple hosts (while using SNMP to query multiple targets)?
The provided configuration does get the hostname of the access point:
# System name (hostname) [[inputs.snmp.field]] is_tag = true name = "sysName" oid = "RFC1213-MIB::sysName.0"
It’s setting that value to
sysName though. Is it as simple has changing
hostname? Or do I need to dynamically set
hostname = ???? somehow?