{"action":"created","issue":{"url":"https://api.github.com/repos/javicacheiro/check_smart/issues/1","repository_url":"https://api.github.com/repos/javicacheiro/check_smart","labels_url":"https://api.github.com/repos/javicacheiro/check_smart/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/javicacheiro/check_smart/issues/1/comments","events_url":"https://api.github.com/repos/javicacheiro/check_smart/issues/1/events","html_url":"https://github.com/javicacheiro/check_smart/issues/1","id":370070710,"node_id":"MDU6SXNzdWUzNzAwNzA3MTA=","number":1,"title":"Check procedure","user":{"login":"niccoX","id":10669660,"node_id":"MDQ6VXNlcjEwNjY5NjYw","avatar_url":"https://avatars2.githubusercontent.com/u/10669660?v=4","gravatar_id":"","url":"https://api.github.com/users/niccoX","html_url":"https://github.com/niccoX","followers_url":"https://api.github.com/users/niccoX/followers","following_url":"https://api.github.com/users/niccoX/following{/other_user}","gists_url":"https://api.github.com/users/niccoX/gists{/gist_id}","starred_url":"https://api.github.com/users/niccoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niccoX/subscriptions","organizations_url":"https://api.github.com/users/niccoX/orgs","repos_url":"https://api.github.com/users/niccoX/repos","events_url":"https://api.github.com/users/niccoX/events{/privacy}","received_events_url":"https://api.github.com/users/niccoX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-15T09:18:12Z","updated_at":"2018-10-18T08:06:54Z","closed_at":null,"author_association":"NONE","body":"```\r\nfor disk in $DISKS; do\r\n    RESULT=$(smartctl -H /dev/$disk | parse | verify)\r\n    if [[ -n $RESULT ]]; then\r\n        FAILURES+=$disk\r\n        ERRORS=1\r\n```\r\nThe `smartctl` command, if not being executed correctly it doesn't give an output.\r\nI need to run `smartctl` with distinct flags to get a SMART status:\r\n\r\n`smartctl -H /dev/vda -d scsi -T permissive`\r\n\r\nSo with the script I can't really test that `smartctl -H /dev/$disk | parse | verify`will work, as it doesn't take it into account. It will display OK without any commands being run."},"comment":{"url":"https://api.github.com/repos/javicacheiro/check_smart/issues/comments/430915042","html_url":"https://github.com/javicacheiro/check_smart/issues/1#issuecomment-430915042","issue_url":"https://api.github.com/repos/javicacheiro/check_smart/issues/1","id":430915042,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDkxNTA0Mg==","user":{"login":"niccoX","id":10669660,"node_id":"MDQ6VXNlcjEwNjY5NjYw","avatar_url":"https://avatars2.githubusercontent.com/u/10669660?v=4","gravatar_id":"","url":"https://api.github.com/users/niccoX","html_url":"https://github.com/niccoX","followers_url":"https://api.github.com/users/niccoX/followers","following_url":"https://api.github.com/users/niccoX/following{/other_user}","gists_url":"https://api.github.com/users/niccoX/gists{/gist_id}","starred_url":"https://api.github.com/users/niccoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niccoX/subscriptions","organizations_url":"https://api.github.com/users/niccoX/orgs","repos_url":"https://api.github.com/users/niccoX/repos","events_url":"https://api.github.com/users/niccoX/events{/privacy}","received_events_url":"https://api.github.com/users/niccoX/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T08:06:54Z","updated_at":"2018-10-18T08:06:54Z","author_association":"NONE","body":"Just tested, I still end up with `Warning: vda`"}}
{"actor":{"display_login":"niccoX"}}