{"action":"created","issue":{"url":"https://api.github.com/repos/matteocorti/check_lm_sensors/issues/3","labels_url":"https://api.github.com/repos/matteocorti/check_lm_sensors/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/matteocorti/check_lm_sensors/issues/3/comments","events_url":"https://api.github.com/repos/matteocorti/check_lm_sensors/issues/3/events","html_url":"https://github.com/matteocorti/check_lm_sensors/issues/3","id":117804138,"number":3,"title":"Cannot find \"name\" file in device folder","user":{"login":"schulmar","id":2674157,"avatar_url":"https://avatars.githubusercontent.com/u/2674157?v=3","gravatar_id":"","url":"https://api.github.com/users/schulmar","html_url":"https://github.com/schulmar","followers_url":"https://api.github.com/users/schulmar/followers","following_url":"https://api.github.com/users/schulmar/following{/other_user}","gists_url":"https://api.github.com/users/schulmar/gists{/gist_id}","starred_url":"https://api.github.com/users/schulmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schulmar/subscriptions","organizations_url":"https://api.github.com/users/schulmar/orgs","repos_url":"https://api.github.com/users/schulmar/repos","events_url":"https://api.github.com/users/schulmar/events{/privacy}","received_events_url":"https://api.github.com/users/schulmar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T12:28:19Z","updated_at":"2015-11-19T18:00:53Z","closed_at":null,"body":"When running `/usr/lib/monitoring-plugins/check_lm_sensors --list` I get the result:\r\n````\r\nLM_SENSORS UNKNOWN - Error reading /sys/class/hwmon/hwmon0/device/name: No such file or directory\r\n````\r\n\r\nLooking in the respective directories I see:\r\n````\r\n$ ls -l /sys/class/hwmon/hwmon0/device/\r\ntotal 0\r\nlrwxrwxrwx 1 root root    0 Nov  2 14:20 driver -> ../../../bus/platform/drivers/coretemp\r\n-rw-r--r-- 1 root root 4096 Nov 19 13:16 driver_override\r\ndrwxr-xr-x 3 root root    0 Nov 19 13:20 hwmon\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 modalias\r\ndrwxr-xr-x 2 root root    0 Nov 19 13:20 power\r\nlrwxrwxrwx 1 root root    0 Nov  2 14:20 subsystem -> ../../../bus/platform\r\n-rw-r--r-- 1 root root 4096 Nov 19 13:16 uevent\r\n````\r\n````\r\n$ ls -l /sys/class/hwmon/hwmon0/\r\ntotal 0\r\nlrwxrwxrwx 1 root root    0 Nov  2 14:20 device -> ../../../coretemp.0\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 name\r\ndrwxr-xr-x 2 root root    0 Nov 19 13:17 power\r\nlrwxrwxrwx 1 root root    0 Nov 19 13:17 subsystem -> ../../../../../class/hwmon\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp2_crit\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp2_crit_alarm\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp2_input\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp2_label\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp2_max\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp3_crit\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp3_crit_alarm\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp3_input\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp3_label\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp3_max\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp4_crit\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp4_crit_alarm\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp4_input\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp4_label\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp4_max\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp5_crit\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp5_crit_alarm\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp5_input\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp5_label\r\n-r--r--r-- 1 root root 4096 Nov 19 13:16 temp5_max\r\n-rw-r--r-- 1 root root 4096 Nov 19 13:16 uevent\r\n````\r\n\r\nSo it seems the `name` file has been moved up from the device subfolder.\r\nObviously the old location might still be in use somewhere else so both should be checked."},"comment":{"url":"https://api.github.com/repos/matteocorti/check_lm_sensors/issues/comments/158138518","html_url":"https://github.com/matteocorti/check_lm_sensors/issues/3#issuecomment-158138518","issue_url":"https://api.github.com/repos/matteocorti/check_lm_sensors/issues/3","id":158138518,"user":{"login":"schulmar","id":2674157,"avatar_url":"https://avatars.githubusercontent.com/u/2674157?v=3","gravatar_id":"","url":"https://api.github.com/users/schulmar","html_url":"https://github.com/schulmar","followers_url":"https://api.github.com/users/schulmar/followers","following_url":"https://api.github.com/users/schulmar/following{/other_user}","gists_url":"https://api.github.com/users/schulmar/gists{/gist_id}","starred_url":"https://api.github.com/users/schulmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schulmar/subscriptions","organizations_url":"https://api.github.com/users/schulmar/orgs","repos_url":"https://api.github.com/users/schulmar/repos","events_url":"https://api.github.com/users/schulmar/events{/privacy}","received_events_url":"https://api.github.com/users/schulmar/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T18:00:53Z","updated_at":"2015-11-19T18:00:53Z","body":"I am using Kernel 4.2.5-1-ARCH.\r\n\r\nI got it to work on my machine by removing the device subfolder in the code.\r\nHowever, I am no Perl programmer and am not sure whether I could create a patch that would make it work on my machine while maintaining \"backwards compatibility\" to the previous versions."}}