Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apcupsd missing field #6373

Closed
MorphBonehunter opened this issue Sep 10, 2019 · 0 comments · Fixed by #6377
Closed

apcupsd missing field #6373

MorphBonehunter opened this issue Sep 10, 2019 · 0 comments · Fixed by #6377
Assignees
Labels
bug unexpected problem or unintended behavior docs Issues related to Telegraf documentation and configuration descriptions
Milestone

Comments

@MorphBonehunter
Copy link

Relevant telegraf.conf:

# Monitor APC UPSes connected to apcupsd
[[inputs.apcupsd]]
  # A list of running apcupsd server to connect to.
  # If not provided will default to tcp://127.0.0.1:3551
  servers = ["tcp://127.0.0.1:3551"]

  ## Timeout for dialing server.
  timeout = "5s"

System info:

Telegraf 1.12.0 (git: master 43bb694)
OS: Archlinux

Steps to reproduce:

Based on the Doku there should be an field online in the plugin output but this is missing.
There is an undokumented field status_flags in the output.

  1. telegraf --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d/ --input-filter apcupsd --test

Expected behavior:

The field online should be printed.

Actual behavior:

There is an field status_flags but no online.

Additional info:

Example Output:

2019-09-10T07:02:34Z I! Starting Telegraf 1.12.0
> apcupsd,host=pandora,serial=3B0746X61711,status=ONLINE,ups_name=pandora battery_charge_percent=100,battery_voltage=13.5,input_frequency=50,input_voltage=224,internal_temp=29.2,load_percent=16,output_voltage=230,status_flags=83886088i,time_left_ns=594000000000i,time_on_battery_ns=0i 1568098954000000000
@danielnelson danielnelson added this to the 1.12.1 milestone Sep 10, 2019
@danielnelson danielnelson added the docs Issues related to Telegraf documentation and configuration descriptions label Sep 10, 2019
@danielnelson danielnelson self-assigned this Sep 10, 2019
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior docs Issues related to Telegraf documentation and configuration descriptions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants