{"action":"created","issue":{"url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/14","repository_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl","labels_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/14/comments","events_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/14/events","html_url":"https://github.com/v-zhuravlev/zbx-smartctl/issues/14","id":156198222,"number":14,"title":"Discovery script for *BSD","user":{"login":"mattpdmnz","id":19524803,"avatar_url":"https://avatars.githubusercontent.com/u/19524803?v=3","gravatar_id":"","url":"https://api.github.com/users/mattpdmnz","html_url":"https://github.com/mattpdmnz","followers_url":"https://api.github.com/users/mattpdmnz/followers","following_url":"https://api.github.com/users/mattpdmnz/following{/other_user}","gists_url":"https://api.github.com/users/mattpdmnz/gists{/gist_id}","starred_url":"https://api.github.com/users/mattpdmnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattpdmnz/subscriptions","organizations_url":"https://api.github.com/users/mattpdmnz/orgs","repos_url":"https://api.github.com/users/mattpdmnz/repos","events_url":"https://api.github.com/users/mattpdmnz/events{/privacy}","received_events_url":"https://api.github.com/users/mattpdmnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-23T04:33:00Z","updated_at":"2016-05-29T23:37:33Z","closed_at":null,"body":"Hi\r\n\r\nYou can turn the Linux discovery script into a BSD-compatible script (particularly useful for FreeNAS and similar) with the following change:\r\n- for (`ls -l /dev/disk/by-id/ | cut -d\"/\" -f3 | sort -n | uniq -w 3`)\r\n+ for (`ls /dev/ | egrep -w \\'(a|s|w)?da?[0-9]+$\\'`)\r\n\r\nThis is portable across FreeBSD, NetBSD and OpenBSD.\r\n\r\nHope you find this useful."},"comment":{"url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/comments/222389495","html_url":"https://github.com/v-zhuravlev/zbx-smartctl/issues/14#issuecomment-222389495","issue_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/14","id":222389495,"user":{"login":"mattpdmnz","id":19524803,"avatar_url":"https://avatars.githubusercontent.com/u/19524803?v=3","gravatar_id":"","url":"https://api.github.com/users/mattpdmnz","html_url":"https://github.com/mattpdmnz","followers_url":"https://api.github.com/users/mattpdmnz/followers","following_url":"https://api.github.com/users/mattpdmnz/following{/other_user}","gists_url":"https://api.github.com/users/mattpdmnz/gists{/gist_id}","starred_url":"https://api.github.com/users/mattpdmnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattpdmnz/subscriptions","organizations_url":"https://api.github.com/users/mattpdmnz/orgs","repos_url":"https://api.github.com/users/mattpdmnz/repos","events_url":"https://api.github.com/users/mattpdmnz/events{/privacy}","received_events_url":"https://api.github.com/users/mattpdmnz/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T23:37:33Z","updated_at":"2016-05-29T23:37:33Z","body":"Looks good.\r\n```\r\nperl smartctl-disks-discovery.pl\r\n{\r\n        \"data\":[\r\n\r\n                {\r\n                        \"{#DISKNAME}\":\"\",\r\n                        \"{#SMART_ENABLED}\":\"0\"\r\n                },\r\n                {\r\n                        \"{#DISKNAME}\":\"da0\",\r\n                        \"{#SMART_ENABLED}\":\"1\"\r\n                },\r\n...\r\n                        \"{#DISKNAME}\":\"ada2\",\r\n                        \"{#SMART_ENABLED}\":\"1\"\r\n                }\r\n        ]\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"mattpdmnz"}}