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

[Feature Request] ipmitool - Option to select Session Privilege #2284

Closed
runningAgain opened this issue Jan 18, 2017 · 5 comments · Fixed by #3643
Closed

[Feature Request] ipmitool - Option to select Session Privilege #2284

runningAgain opened this issue Jan 18, 2017 · 5 comments · Fixed by #3643
Labels
feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@runningAgain
Copy link

On systems with lanplus interfaces ipmi plugin doesnt work

Steps to reproduce:

  1. run telegraf -test with configured ipmi section
  2. Error: E! run /bin/ipmitool ipmitool -H xxx.xxx.xx.xx -U myuser -P mypassword -I lanplus sdr: Set Session Privilege Level to ADMINISTRATOR failed: Unknown (0x81)
    Error: Unable to establish IPMI v2 / RMCP+ session
    (exit status 1)
  3. If i run the command with the privilege option -L User then command is successfull. Whole commandline is .... ipmitool -H xxx.xxx.xx.xx -U myuser -P mypassword -I lanplus -L User sdr
@sparrc
Copy link
Contributor

sparrc commented Jan 21, 2017

it will work, but you need to give it credentials for an admin user.

do you need the option to run the ipmi plugin with "USER" privileges?

@runningAgain
Copy link
Author

Hello again,
yes i can use the admin account but a read only user account is better because the plain text password inside the configuration. However, a option to use the "privilege" option "-L User" is helpfull and a nice feature.

@sparrc sparrc added this to the Future Milestone milestone Jan 29, 2017
@Stefan-Code
Copy link

I was about to open the same issue. This would really be a nice feature to have, because from a security perspective it doesn't really make sense to let telegraf access IPMI with admin privileges.

@duckman
Copy link

duckman commented Apr 13, 2017

Just for reference if anyone is interested in setting a user up for this: https://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool#User_Configuration

@danielnelson danielnelson removed this from the Future Milestone milestone Jun 14, 2017
@artbird309
Copy link

I really would like to get this added, I tried every combination in the config file to get the "-L user" to it added when the command is executed and it was too smart and would error out.

I really do not want my monitoring user to be have admin privileges due to the password being plain text in config and all the logs. With admin privileges you can turn on and off my server remotely.

@danielnelson danielnelson added this to the 1.5.0 milestone Nov 27, 2017
@danielnelson danielnelson added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin feature request Requests for new plugin and for new features to existing plugins and removed feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin labels Nov 27, 2017
@danielnelson danielnelson modified the milestones: 1.5.0, 1.6.0 Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants