Skip to content

Telegraf neptune_apex plugin misses outputs #16630

@avelo

Description

@avelo

Relevant telegraf.conf

[[inputs.neptune_apex]]
#   ## The Neptune Apex plugin reads the publicly available status.xml data from a local Apex.
#   ## Measurements will be logged under "apex".
# 
#   ## The base URL of the local Apex(es). If you specify more than one server, they will
#   ## be differentiated by the "source" tag.
   servers = [
     "http://apex_url",
   ]

Logs from Telegraf

telegraf --config /etc/telegraf/telegraf.conf --debug
2025-03-13T22:20:37Z I! Loading config: /etc/telegraf/telegraf.conf
2025-03-13T22:20:37Z I! Starting Telegraf 1.34.0 brought to you by InfluxData the makers of InfluxDB
2025-03-13T22:20:37Z I! Available plugins: 239 inputs, 9 aggregators, 33 processors, 26 parsers, 63 outputs, 6 secret-stores
2025-03-13T22:20:37Z I! Loaded inputs: neptune_apex
2025-03-13T22:20:37Z I! Loaded aggregators:
2025-03-13T22:20:37Z I! Loaded processors:
2025-03-13T22:20:37Z I! Loaded secretstores:
2025-03-13T22:20:37Z I! Loaded outputs: file influxdb
2025-03-13T22:20:37Z I! Tags enabled: host=telegraf
2025-03-13T22:20:37Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"telegraf", Flush Interval:10s
2025-03-13T22:20:37Z W! [agent] The default value of 'skip_processors_after_aggregators' will change to 'true' with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to 'false'!
2025-03-13T22:20:37Z D! [agent] Initializing plugins
2025-03-13T22:20:37Z D! [agent] Connecting outputs
2025-03-13T22:20:37Z D! [agent] Attempting connection to [outputs.file]
2025-03-13T22:20:37Z D! [agent] Successfully connected to outputs.file
2025-03-13T22:20:37Z D! [agent] Attempting connection to [outputs.influxdb]
2025-03-13T22:20:37Z D! [agent] Successfully connected to outputs.influxdb
2025-03-13T22:20:37Z D! [agent] Starting service inputs
neptune_apex,hardware=1.0,host=telegraf,software=5.12_8H24,source=IIM,type=controller power_restored=1740717916000000000i,serial="AC6:xxxxx",power_failed=1740712319000000000i 1741904439000000000
neptune_apex,device_id=base_Var1,hardware=1.0,host=telegraf,name=VarSpd1_I1,output_id=0,output_type=variable,software=5.12_8H24,source=IIM,type=output state="PF1" 1741904439000000000
neptune_apex,device_id=base_Var2,hardware=1.0,host=telegraf,name=VarSpd2_I2,output_id=1,output_type=variable,software=5.12_8H24,source=IIM,type=output state="PF2" 1741904439000000000
neptune_apex,device_id=base_Var3,hardware=1.0,host=telegraf,name=VarSpd3_I3,output_id=2,output_type=variable,software=5.12_8H24,source=IIM,type=output state="PF3" 1741904439000000000
neptune_apex,device_id=base_Var4,hardware=1.0,host=telegraf,name=VarSpd4_I4,output_id=3,output_type=variable,software=5.12_8H24,source=IIM,type=output state="PF4" 1741904439000000000
neptune_apex,device_id=base_Alarm,hardware=1.0,host=telegraf,name=SndAlm_I6,output_id=4,output_type=alert,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=base_Warn,hardware=1.0,host=telegraf,name=SndWrn_I7,output_id=5,output_type=alert,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=base_email,hardware=1.0,host=telegraf,name=EmailAlm_I5,output_id=6,output_type=alert,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=base_email2,hardware=1.0,host=telegraf,name=Email2Alm_I9,output_id=7,output_type=alert,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=1_2,hardware=1.0,host=telegraf,name=Alarm_1_2,output_id=8,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=2_1,hardware=1.0,host=telegraf,name=Light1_2_1,output_id=9,output_type=outlet,software=5.12_8H24,source=IIM,type=output amp=0,state="OFF",watt=0 1741904439000000000
neptune_apex,device_id=2_2,hardware=1.0,host=telegraf,name=Light2_2_2,output_id=10,output_type=outlet,software=5.12_8H24,source=IIM,type=output amp=0,state="OFF",watt=0 1741904439000000000
neptune_apex,device_id=2_3,hardware=1.0,host=telegraf,name=RetPump_2_3,output_id=11,output_type=outlet,software=5.12_8H24,source=IIM,type=output state="OFF",watt=0,amp=0 1741904439000000000
neptune_apex,device_id=2_4,hardware=1.0,host=telegraf,name=Heater_2_4,output_id=12,output_type=outlet,software=5.12_8H24,source=IIM,type=output state="OFF",watt=0,amp=0 1741904439000000000
neptune_apex,device_id=2_5,hardware=1.0,host=telegraf,name=Skimmer_2_5,output_id=13,output_type=outlet,software=5.12_8H24,source=IIM,type=output state="OFF",watt=0,amp=0 1741904439000000000
neptune_apex,device_id=2_6,hardware=1.0,host=telegraf,name=Pump_2_6,output_id=14,output_type=outlet,software=5.12_8H24,source=IIM,type=output state="OFF",watt=0,amp=0 1741904439000000000
neptune_apex,device_id=2_7,hardware=1.0,host=telegraf,name=LinkA_2_7,output_id=15,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=2_8,hardware=1.0,host=telegraf,name=LinkB_2_8,output_id=16,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=12_1,hardware=1.0,host=telegraf,name=Electro_3A,output_id=17,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=12_2,hardware=1.0,host=telegraf,name=Electro_3B,output_id=18,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=10_1,hardware=1.0,host=telegraf,name=Electro_2A,output_id=19,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="OFF" 1741904439000000000
neptune_apex,device_id=10_2,hardware=1.0,host=telegraf,name=Electro_2B,output_id=20,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AON" 1741904439000000000
neptune_apex,device_id=13_1,hardware=1.0,host=telegraf,name=DOS-3A,output_id=21,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="TBL" 1741904439000000000
neptune_apex,device_id=13_2,hardware=1.0,host=telegraf,name=DOS-3B,output_id=22,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="TBL" 1741904439000000000
neptune_apex,device_id=11_1,hardware=1.0,host=telegraf,name=DOS-2A,output_id=23,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="TBL" 1741904439000000000
neptune_apex,device_id=11_2,hardware=1.0,host=telegraf,name=DOS-2B,output_id=24,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="TBL" 1741904439000000000
neptune_apex,device_id=14_1,hardware=1.0,host=telegraf,name=Electro_1A,output_id=25,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=14_2,hardware=1.0,host=telegraf,name=Electro_1B,output_id=26,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=15_1,hardware=1.0,host=telegraf,name=DOS-1A,output_id=27,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="OFF" 1741904439000000000
neptune_apex,device_id=15_2,hardware=1.0,host=telegraf,name=DOS-1B,output_id=28,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="TBL" 1741904439000000000
neptune_apex,device_id=17_1,hardware=1.0,host=telegraf,name=LinkA_17_1,output_id=31,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,device_id=17_2,hardware=1.0,host=telegraf,name=Alarm_17_2,output_id=32,output_type=unknown,software=5.12_8H24,source=IIM,type=output state="AOF" 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_I4,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=22.8 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_I4,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.61 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=ORP,probe_type=ORP,software=5.12_8H24,source=IIM,type=probe value=364 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=FLOW_2,software=5.12_8H24,source=IIM,type=probe value=252 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_D5,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.64 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_D6,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.26 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_D7,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.89 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_D8,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.24 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_I3,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.86 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Lvl_3,software=5.12_8H24,source=IIM,type=probe value=27 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=FLOW_1,software=5.12_8H24,source=IIM,type=probe value=217 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_D5,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=15.8 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_D6,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=15.6 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_D7,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=15.8 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_D8,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=15.8 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Volt_2,software=5.12_8H24,source=IIM,type=probe value=232 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_I2,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=23 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_I2,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.19 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_I1,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=21.7 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=pH_I1,probe_type=pH,software=5.12_8H24,source=IIM,type=probe value=7.72 1741904439000000000
neptune_apex,hardware=1.0,host=telegraf,name=Tmp_I3,probe_type=Temp,software=5.12_8H24,source=IIM,type=probe value=24.3 1741904439000000000
2025-03-13T22:20:47Z D! [outputs.file] Wrote batch of 53 metrics in 922.583µs
2025-03-13T22:20:47Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-03-13T22:20:47Z D! [outputs.influxdb] Wrote batch of 53 metrics in 5.219758ms
2025-03-13T22:20:47Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics

System info

telegraf 1.34 ; debian 12

Docker

No response

Steps to reproduce

1.- Install and configure telegraf and neptune_apex plugin to store to influxDB

Values are collected from status.xml. values named as inputs ("probe") works ok, but values from "output" fail to register state, a value of 0 is collected independently from the value of the output: "AON","ON","AOFF","OFF","TBL","PF*"

Expected behavior

I expect to register the state of the ouputs, when are open, closed,...

Actual behavior

state is not registered

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions