Discussion:
[influxdb] Anyone using telegraf and snmp for multiple hosts?
Josef Karthauser
2016-05-09 14:34:56 UTC
Permalink
Is anyone here using telegraf to collect metrics from multiple hosts?

It seems to me that the telegraf.conf file only allows a single host name
to be specified, which means that even if I have multiple [[inputs.snmp]]
sections I can't label them as belonging to different hosts in my influxdb.

That doesn't seem right to me, so I wondered if anyone has a sweet
workaround for it. I don't want to run one telegraf for each SNMP device
I'm monitoring.

What have I missed?

Thanks
Joe
--
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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/860a4163-72b2-4f7e-9c26-eadd694d21ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Josef Karthauser
2016-05-09 18:47:03 UTC
Permalink
What I missed was setting the 'host' tag by hand; that fixed the problem. I
just added this at the end of the [[inputs.snmp]] section:

[inputs.snmp.tags]

host = "my.host.name"



That did the trick.

Cheers,
Joe
Post by Josef Karthauser
Is anyone here using telegraf to collect metrics from multiple hosts?
It seems to me that the telegraf.conf file only allows a single host name
to be specified, which means that even if I have multiple [[inputs.snmp]]
sections I can't label them as belonging to different hosts in my influxdb.
That doesn't seem right to me, so I wondered if anyone has a sweet
workaround for it. I don't want to run one telegraf for each SNMP device
I'm monitoring.
What have I missed?
Thanks
Joe
--
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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/8669a714-c9c3-419c-acc7-8a4176c6cf6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2017-05-26 05:11:13 UTC
Permalink
Post by Josef Karthauser
Is anyone here using telegraf to collect metrics from multiple hosts?
It seems to me that the telegraf.conf file only allows a single host name to be specified, which means that even if I have multiple [[inputs.snmp]] sections I can't label them as belonging to different hosts in my influxdb.
That doesn't seem right to me, so I wondered if anyone has a sweet workaround for it. I don't want to run one telegraf for each SNMP device I'm monitoring.
What have I missed?
Thanks
Joe
Hi joe can you please explain me how you added multiple hosts in telegraf for monitoring.As I needed urgently.Thank you
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/5211eb15-cecf-4992-9781-9cb443ea943a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...