x70b1 / telegraf-edgeos

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

"Undefined but requested parser: influx" in the latest version #8

Closed fudge01010 closed 1 year ago

fudge01010 commented 1 year ago

Looks like a parser was potentially removed in a later version - tried v1.25.1-2, and when testing my config, received the following:

E! error loading config file /etc/telegraf/telegraf.conf: error parsing exec, adding parser failed: undefined but requested parser: influx

Rolling back to 1.23.2-1 seems to resolve the issue, and my config parses fine.

Config is below:

 [agent]
   hostname = "telegraf_erx"

   interval = "1m"

   debug = false
   quiet = false
   logtarget = "stderr"

[[outputs.influxdb_v2]]
   urls = ["xxx"]
   organization = "xxx"
   bucket = "xxx"
   token = "xxx"

 [[inputs.cpu]]
   percpu = false
   report_active = true

 [[inputs.system]]

 [[inputs.mem]]

 [[inputs.net]]

 [[inputs.exec]]
   command = "sh /usr/lib/telegraf/edgeos.sh --interfaces --power --temperature"
   data_format = "influx"

 [[inputs.exec]]
   command = "sh /usr/lib/telegraf/edgeos.sh --firmware"
   data_format = "influx"

   interval = "1d"
fudge01010 commented 1 year ago

Forgot to say - using an Edgerouter X, so mipsel package / build.

x70b1 commented 1 year ago

Thanks for the report. I have found the issue and will build a new release later.

x70b1 commented 1 year ago

Its fixed in the latest release 1.25.1-3.

Maybe you have an issue with the 1d option. Then try 24h.