0

Unable to configure Telegraf MQTT Output
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unable to configure Telegraf MQTT Output

by quano on Thu Aug 01, 2019 6:19 pm

Hi, im new in Adafruit , made some python Projects and working perfectly. But when i move some other sensor information througt Telegraf-SNMP-MQTT , im unable to publish .

I've tried some options to fit Adafruit IO naming conventions, but when i think it's configured none of the debug tells me nothing even in Monitor Section.

Sometimes i say that Telegraf Adds my hostname in my feed name, so instead MYUSERNAME/feeds/FeedName i have seen MYUSERNAME/feeds/HOSTNAME/FeedName when firstly configuring, but even using a group named like the hostname that telegraf adds. But that does not match correctly to the feed name, because it would be MYUSERNAME/feeds/HOSTNAME.FeedName

¿Any idea how to renaming topics with Telegraf?

[[inputs.snmp]]
agents = [ "192.168.1.99:161" ]
version = 2
community = "$MYSNMPCOMMUNITY"

[[outputs.mqtt]]
## URLs of mqtt brokers
servers = ["io.adafruit.com:1883"]

## topic for producer messages
topic_prefix = "$MYADAFRUITUSERNAME/feeds/"

## QoS policy for messages
## 0 = at most once
## 1 = at least once
## 2 = exactly once
qos = 1

quano
 
Posts: 1
Joined: Tue Jun 18, 2019 11:39 am

Please be positive and constructive with your questions and comments.