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

added user privilege level setting to IPMI sensors #2397

Closed
wants to merge 1 commit into from

Conversation

Stefan-Code
Copy link

@Stefan-Code Stefan-Code commented Feb 11, 2017

Proposed fix for #2284
This allows using an unprivileged user for gathering remote IPMI sensor stats.

ipmitool -H host -U user -P password -L privilege_level -I lan sdr

Also, setting the path for ipmitool was broken because of capitalization?
field corresponding to 'path' is not defined in '*ipmi_sensor.Ipmi'
I think I fixed that, too.

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated

}

var sampleConfig = `
## optionally specify the path to the ipmitool executable
# path = "/usr/bin/ipmitool"
#
# optionally specify a privilege level, e.g. USER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment should have two #

Copy link
Contributor

@sparrc sparrc Feb 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I would suggest just copying the comment from the man page:

Force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR

}

var sampleConfig = `
## optionally specify the path to the ipmitool executable
# path = "/usr/bin/ipmitool"
#
# optionally specify a privilege level, e.g. USER
# privilege = "USER"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default should be ADMINISTRATOR, as it is for ipmitool in general.

@sparrc sparrc added this to the 1.3.0 milestone Feb 14, 2017
@danielnelson
Copy link
Contributor

@Stefan-Code Can you rebase? (the path fix was merged in a different PR)

@danielnelson danielnelson modified the milestones: 1.3.0, 1.4.0 Apr 20, 2017
@danielnelson danielnelson modified the milestones: 1.4.0, 1.5.0 Aug 14, 2017
@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Aug 24, 2017
@danielnelson danielnelson modified the milestones: 1.5.0, 1.6.0 Nov 29, 2017
@danielnelson
Copy link
Contributor

I resolved conflicts and merged this in #3643

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants