Skip to content

added user privilege level setting to IPMI sensors#2397

Closed
Stefan-Code wants to merge 1 commit intoinfluxdata:masterfrom
Stefan-Code:master
Closed

added user privilege level setting to IPMI sensors#2397
Stefan-Code wants to merge 1 commit intoinfluxdata:masterfrom
Stefan-Code:master

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

## 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

# 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