{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/3332","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/3332/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/3332/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/3332/events","html_url":"https://github.com/influxdata/telegraf/issues/3332","id":265058877,"node_id":"MDU6SXNzdWUyNjUwNTg4Nzc=","number":3332,"title":"IPMI Sensor plugin requires telegraf service to run as root","user":{"login":"chrishoage","id":1056886,"node_id":"MDQ6VXNlcjEwNTY4ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/1056886?v=4","gravatar_id":"","url":"https://api.github.com/users/chrishoage","html_url":"https://github.com/chrishoage","followers_url":"https://api.github.com/users/chrishoage/followers","following_url":"https://api.github.com/users/chrishoage/following{/other_user}","gists_url":"https://api.github.com/users/chrishoage/gists{/gist_id}","starred_url":"https://api.github.com/users/chrishoage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrishoage/subscriptions","organizations_url":"https://api.github.com/users/chrishoage/orgs","repos_url":"https://api.github.com/users/chrishoage/repos","events_url":"https://api.github.com/users/chrishoage/events{/privacy}","received_events_url":"https://api.github.com/users/chrishoage/received_events","type":"User","site_admin":false},"labels":[{"id":561634381,"node_id":"MDU6TGFiZWw1NjE2MzQzODE=","url":"https://api.github.com/repos/influxdata/telegraf/labels/documentation","name":"documentation","color":"c6ffd0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/influxdata/telegraf/milestones/16","html_url":"https://github.com/influxdata/telegraf/milestone/16","labels_url":"https://api.github.com/repos/influxdata/telegraf/milestones/16/labels","id":2655393,"node_id":"MDk6TWlsZXN0b25lMjY1NTM5Mw==","number":16,"title":"1.5.0","description":"","creator":{"login":"danielnelson","id":1048079,"node_id":"MDQ6VXNlcjEwNDgwNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1048079?v=4","gravatar_id":"","url":"https://api.github.com/users/danielnelson","html_url":"https://github.com/danielnelson","followers_url":"https://api.github.com/users/danielnelson/followers","following_url":"https://api.github.com/users/danielnelson/following{/other_user}","gists_url":"https://api.github.com/users/danielnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnelson/subscriptions","organizations_url":"https://api.github.com/users/danielnelson/orgs","repos_url":"https://api.github.com/users/danielnelson/repos","events_url":"https://api.github.com/users/danielnelson/events{/privacy}","received_events_url":"https://api.github.com/users/danielnelson/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":129,"state":"closed","created_at":"2017-07-21T22:13:03Z","updated_at":"2017-12-15T02:55:56Z","due_on":"2017-12-13T08:00:00Z","closed_at":"2017-12-15T02:55:56Z"},"comments":7,"created_at":"2017-10-12T19:31:31Z","updated_at":"2018-06-23T22:43:22Z","closed_at":"2017-10-16T18:12:36Z","author_association":"NONE","body":"## Bug report\r\n\r\nOn Ubuntu `/dev/ipmi0` is owned by `root` \r\n\r\n```\r\n› la /dev/ipmi0\r\ncrw------- 1 root root 243, 0 Oct 12 11:51 /dev/ipmi0\r\n```\r\n\r\nThe only way I've found to get `ipmitool sdr` (local ipmi) to work is to modify the telegraf.service user to be `root` on ubuntu. \r\n\r\nI've tried adding `telegraf` user to the `root` group. I've tried adding \r\n\r\n```\r\ntelegraf ALL(root) NOEXEC: NOPASSWD: /usr/bin/ipmitool\r\n```\r\n\r\nto my visudo file. \r\n\r\nI'm really unsure how to get this to work with out having the service run telegraf as root. \r\n\r\n### Relevant telegraf.conf:\r\n\r\n```\r\n[[inputs.ipmi_sensor]]\r\n```\r\nNo other configuration\r\n\r\n### System info:\r\n\r\nipmitool version 1.8.16\r\nTelegraf v1.4.2 (git: release-1.4 0cc5fc0ce40b09467012fffddcea6985b2763a97)\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.3 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n\r\n### Steps to reproduce:\r\n\r\n1. Install telegraf following instructions for apt\r\n2. Uncomment IPMI sensor config\r\n\r\n### Expected behavior:\r\nIPMI to read sensor data\r\n\r\n### Actual behavior:\r\n```\r\n2017-10-12T19:22:20Z E! Error in plugin [inputs.ipmi_sensor]: failed to run command /usr/bin/ipmitool sdr: exit status 1 - Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory\r\n```\r\n\r\nI have scoured the GHIs and the internet for how to solve this issue and have come up short. \r\n\r\nHow is this intended to be used? "},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/399715304","html_url":"https://github.com/influxdata/telegraf/issues/3332#issuecomment-399715304","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/3332","id":399715304,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTcxNTMwNA==","user":{"login":"antifuchs","id":11864,"node_id":"MDQ6VXNlcjExODY0","avatar_url":"https://avatars1.githubusercontent.com/u/11864?v=4","gravatar_id":"","url":"https://api.github.com/users/antifuchs","html_url":"https://github.com/antifuchs","followers_url":"https://api.github.com/users/antifuchs/followers","following_url":"https://api.github.com/users/antifuchs/following{/other_user}","gists_url":"https://api.github.com/users/antifuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/antifuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antifuchs/subscriptions","organizations_url":"https://api.github.com/users/antifuchs/orgs","repos_url":"https://api.github.com/users/antifuchs/repos","events_url":"https://api.github.com/users/antifuchs/events{/privacy}","received_events_url":"https://api.github.com/users/antifuchs/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T22:43:22Z","updated_at":"2018-06-23T22:43:22Z","author_association":"NONE","body":"I feel that this may not be super relevant to most people, but maybe it'll help another person is googling for the same problem I had: If you are on Ubuntu, and have the `openipmi` package installed, its init script resets the owner&permission on `/dev/ipmi0`. I solved this problem for myself by uninstalling the `openipmi` package, but I guess you could also drop an `exit 0` in `/etc/default/openipmi`."}}
{"actor":{"display_login":"antifuchs"}}