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

Freebsd "ipmitool" error with "use_cache" #16348

Open
bunnyevans opened this issue Dec 24, 2024 · 0 comments
Open

Freebsd "ipmitool" error with "use_cache" #16348

bunnyevans opened this issue Dec 24, 2024 · 0 comments
Labels
bug unexpected problem or unintended behavior

Comments

@bunnyevans
Copy link

Relevant telegraf.conf

[[inputs.ipmi_sensor]]
  interval = "60s" timeout = "20s"
  use_sudo = true
  metric_version = 2
  use_cache = true

Logs from Telegraf

E! [inputs.ipmi_sensor] Error in plugin: failed to run command "sudo -n /usr/local/bin/ipmitool sdr -S /tmp/_ipmi_
cache elist": exit status 1 - Invalid SDR command: -S

System info

Telegraf 1.33? Freebsd 14.2

Docker

No response

Steps to reproduce

telegraf-1.33.0 Time-series data collection
ipmitool-1.8.19_2 CLI to manage IPMI systems

Expected behavior

/usr/local/bin/ipmitool -S /tmp/_ipmi_cache sdr
SysHealth_Stat | 0x00 | ok
01-Inlet Ambient | 19 degrees C | ok
02-CPU 1 | 40 degrees C | ok
03-P1 DIMM 1-4 | 28 degrees C | ok
04-HD Max | 35 degrees C | ok

Note the position of -S is before "sdr" this works.

Actual behavior

/usr/local/bin/ipmitool sdr -S /tmp/_ipmi_cache
Invalid SDR command: -S

This is the command as used by telegraf, note the position of the -S

Additional info

The thing works on linux:
telegraf/unknown,now 1.33.0-1 amd64 [installed]
ipmitool/stable,now 1.8.19-4+deb12u2 amd64 [installed]

@bunnyevans bunnyevans added the bug unexpected problem or unintended behavior label Dec 24, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant