x70b1 / telegraf-edgeos

A lightweight Telegraf distribution customized for Ubiquiti's EdgeOS.
MIT License
34 stars 3 forks source link

telegraf.service - The plugin-driven server agent for reporting metric into I #2

Closed ChieF-TroN closed 2 years ago

ChieF-TroN commented 2 years ago

I have an ER8-Pro on firmware v2.0.9-hotfix.2

I followed your installation instructions, however the service is failing: image

I do see that telegraf is in /usr/bin, and all I did was input my influxdb url, username, and password into the telegraf.conf.

x70b1 commented 2 years ago

Whats your package version?

Check your logs with journalctl -u telegraf -f.

x70b1 commented 2 years ago

I have found an issue. It is fixed in the latest release. Please try that version.

ChieF-TroN commented 2 years ago

Unfortunately this did not resolve this issue. image

Here is my config, it's just the sample config with my influxdb credentials/server plugged in. image

I forgot to mention I'm using the mips package.

Edit: I realize that the above conf screenshot shows everything being commented out. I realized this later and removed the comments, but still the same results.

ChieF-TroN commented 2 years ago

I resolved this issue. I had both the [[inputs.exec]] uncommented resulting in this error. commenting out the second inputs.exec and the latter resolved this issue. I apologize, I'm a very new to how telegraf works.

x70b1 commented 2 years ago

The second inputs.exec section should also work. It seems like a config error. You can play with this command:

/usr/bin/telegraf --test --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --debug

You find the info about the commands here.