-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
plugins/inputs/ipmi_sensor/ipmi.go
Outdated
} | ||
|
||
var sampleConfig = ` | ||
## optionally specify the path to the ipmitool executable | ||
# path = "/usr/bin/ipmitool" | ||
# | ||
# optionally specify a privilege level, e.g. USER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment should have two #
There was a problem hiding this comment.
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
plugins/inputs/ipmi_sensor/ipmi.go
Outdated
} | ||
|
||
var sampleConfig = ` | ||
## optionally specify the path to the ipmitool executable | ||
# path = "/usr/bin/ipmitool" | ||
# | ||
# optionally specify a privilege level, e.g. USER | ||
# privilege = "USER" |
There was a problem hiding this comment.
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.
@Stefan-Code Can you rebase? (the path fix was merged in a different PR) |
I resolved conflicts and merged this in #3643 |
Proposed fix for #2284
This allows using an unprivileged user for gathering remote IPMI sensor stats.
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.