Hi, I was after some guidance about having multiple SNMP input plugins. The reason is that I have lots of different types of machines that I would like to collect different OIDs for.
I figured maybe the best way was to have separate .conf files under telegraf.d but it while they seemed to load the config they didn't run. So as a test I put the config back into the main telegraf.conf file and found the same situation. Config file: [[inputs.snmp]] interval = "10s" agents = [ "192.168.0.1:161", "192.168.0.2:161" ] timeout = "5s" version = 2 community = "public" max_repetitions = 50 name = "test" [[inputs.snmp.field]] name = "hostname" oid = ".1.3.6.1.2.1.1.5.0" # sysName is_tag = true [[inputs.snmp]] interval = "10s" agents = [ "192.168.0.3:161" ] timeout = "5s" version = 2 community = "public" max_repetitions = 50 name = "test" [[inputs.snmp.field]] name = "other" oid = ".1.3.6.1.2.1.1.5.0" is_tag = true The result in the log file looks like: * Plugin: snmp, Collection 1 * Internal: 10s > cpu,agent_host=.... (all the stats for the first [[inputs.snmp]] entry work okay) * Plugin: snmp, Collection 1 * Internal: 10s the log then stops. As if the 2nd [[inputs.snmp]] is loaded but not run. No stats are collected for these hosts. Is there a correct way to do different collections for different hosts or a better way to achieve this? -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/e0af1a5a-6fe9-49c4-8c9f-a718513e3489%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
