joema
February 2, 2019, 2:03pm
1
Hi there,
On 18.06.2 I want to send metrics (via telegraf) to an influxdb at another host.
I followed the manual at
(with the current version of telegraf) but starting telegraf failed with the message
root@host:~# /usr/bin/telegraf --config /etc/telegraf/telegraf.conf
/usr/bin/telegraf: line 1: syntax error: unexpected word (expecting ")")
Is anybody able to run telegraf on OpenWrt?
Or does anyone know how to compile/create a telegraf package? Or can push me in the right direction?
Thanks,
Jörg
Do you have an ARM router?
You have to cross-compile the software by yourself
Cross compiling If you want to use a program, currently not contained in the OpenWrt repository, you probably won't find a binary compiled for your CPU. Provided that it is released as open source, you can download the code and compile it using the...
Also, there's a standard package already compiled for this purpose:
1 Like
Ark
April 29, 2020, 1:47am
5
Sorry to bring old thread, but telegraf have MIPS compiled package (for most SoC that use openwrt) if anyone interested here : https://github.com/influxdata/telegraf/releases
slh
April 29, 2020, 4:37am
6
mips does not imply mips/ musl (at least the mips-debian packages would be glibc based) or any other form of compatibility with OpenWrt (yes, there are also just mips/ linux binaries, but without any indication of those being glibc, uclibc or musl based).
You can also send and receive data through Telegraph using a third party library, such as the many available for node.js.