{"action":"created","issue":{"url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/10","repository_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl","labels_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/10/comments","events_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/10/events","html_url":"https://github.com/v-zhuravlev/zbx-smartctl/issues/10","id":143269581,"number":10,"title":"Make items and UserParams compatible with dev names like \"/dev/csmi0,0\"","user":{"login":"lisikh","id":7628451,"avatar_url":"https://avatars.githubusercontent.com/u/7628451?v=3","gravatar_id":"","url":"https://api.github.com/users/lisikh","html_url":"https://github.com/lisikh","followers_url":"https://api.github.com/users/lisikh/followers","following_url":"https://api.github.com/users/lisikh/following{/other_user}","gists_url":"https://api.github.com/users/lisikh/gists{/gist_id}","starred_url":"https://api.github.com/users/lisikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisikh/subscriptions","organizations_url":"https://api.github.com/users/lisikh/orgs","repos_url":"https://api.github.com/users/lisikh/repos","events_url":"https://api.github.com/users/lisikh/events{/privacy}","received_events_url":"https://api.github.com/users/lisikh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"v-zhuravlev","id":14870891,"avatar_url":"https://avatars.githubusercontent.com/u/14870891?v=3","gravatar_id":"","url":"https://api.github.com/users/v-zhuravlev","html_url":"https://github.com/v-zhuravlev","followers_url":"https://api.github.com/users/v-zhuravlev/followers","following_url":"https://api.github.com/users/v-zhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/v-zhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-zhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-zhuravlev/subscriptions","organizations_url":"https://api.github.com/users/v-zhuravlev/orgs","repos_url":"https://api.github.com/users/v-zhuravlev/repos","events_url":"https://api.github.com/users/v-zhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/v-zhuravlev/received_events","type":"User","site_admin":false},"assignees":[{"login":"v-zhuravlev","id":14870891,"avatar_url":"https://avatars.githubusercontent.com/u/14870891?v=3","gravatar_id":"","url":"https://api.github.com/users/v-zhuravlev","html_url":"https://github.com/v-zhuravlev","followers_url":"https://api.github.com/users/v-zhuravlev/followers","following_url":"https://api.github.com/users/v-zhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/v-zhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-zhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-zhuravlev/subscriptions","organizations_url":"https://api.github.com/users/v-zhuravlev/orgs","repos_url":"https://api.github.com/users/v-zhuravlev/repos","events_url":"https://api.github.com/users/v-zhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/v-zhuravlev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":17,"created_at":"2016-03-24T15:00:00Z","updated_at":"2016-12-16T11:01:53Z","closed_at":null,"body":"I was getting errors with devices called \"/dev/csmi0,0\", \"\"/dev/csmi0,1\" etc on Windows hosts.\nTo fix it:\n- Used double-quotes on \"$1\" params in UserParams:\n\n```\nUserParameter=uHDD[*], for /F \"tokens=10\" %a in ('C:\\usr\\zabbix\\smartmontools\\bin\\smartctl.exe -A \"$1\" ^| find \"$2\"') do @echo %a\nUserParameter=uHDD.health.[*], for /F \"tokens=6\" %a in ('C:\\usr\\zabbix\\smartmontools\\bin\\smartctl.exe -H \"$1\" ^| find \"test\"') do @echo %a\nUserParameter=uHDD.model.[*],for /F \"tokens=3*\" %a in ('C:\\usr\\zabbix\\smartmontools\\bin\\smartctl.exe -i \"$1\" ^| find \"Device Model\"') do @echo %a %b\nUserParameter=uHDD.sn.[*],for /F \"tokens=3\" %a in ('C:\\usr\\zabbix\\smartmontools\\bin\\smartctl.exe -i \"$1\" ^| find \"Serial Number\"') do @echo %a\nUserParameter=uHDD.errorlog.[*], for /F \"tokens=4\" %a in ('C:\\usr\\zabbix\\smartmontools\\bin\\smartctl.exe -l error \"$1\" ^| find \"ATA Error Count\"') do @echo %a\n```\n- Escaped macro {#DISKNAME} in calcuted item \"{#DISKNAME}: SMART critical errors total\":\n\n```\nlast(\"uHDD[\\\"{#DISKNAME}\\\",5 Reallocated]\")+last(\"uHDD[\\\"{#DISKNAME}\\\",Spin_Retry_Count]\")+last(\"uHDD[\\\"{#DISKNAME}\\\",Current_Pending_Sector]\")+last(\"uHDD[\\\"{#DISKNAME}\\\",Offline_Uncorrectable]\")\n```\n- Double-quoted macro {#DISKNAME} in items uHDD[...]:\n\n```\nuHDD[\"{#DISKNAME}\",5 Reallocated]\nuHDD[\"{#DISKNAME}\",Spin_Retry_Count]\nuHDD[\"{#DISKNAME}\",Current_Pending_Sector]\nuHDD[\"{#DISKNAME}\",Offline_Uncorrectable]\n```\n\nAlso, you ps-discovery script looks only into devices with name likes \"/dev/hd*\". \nSo I have written bat-file, which calls \"smartctl.exe --scan\" to detect hard drives.\n[smartctl-disks-discovery.bat.zip](https://github.com/v-zhuravlev/zbx-smartctl/files/188046/smartctl-disks-discovery.bat.zip)\n"},"comment":{"url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/comments/267570398","html_url":"https://github.com/v-zhuravlev/zbx-smartctl/issues/10#issuecomment-267570398","issue_url":"https://api.github.com/repos/v-zhuravlev/zbx-smartctl/issues/10","id":267570398,"user":{"login":"Nemles","id":12425667,"avatar_url":"https://avatars.githubusercontent.com/u/12425667?v=3","gravatar_id":"","url":"https://api.github.com/users/Nemles","html_url":"https://github.com/Nemles","followers_url":"https://api.github.com/users/Nemles/followers","following_url":"https://api.github.com/users/Nemles/following{/other_user}","gists_url":"https://api.github.com/users/Nemles/gists{/gist_id}","starred_url":"https://api.github.com/users/Nemles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nemles/subscriptions","organizations_url":"https://api.github.com/users/Nemles/orgs","repos_url":"https://api.github.com/users/Nemles/repos","events_url":"https://api.github.com/users/Nemles/events{/privacy}","received_events_url":"https://api.github.com/users/Nemles/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T11:01:53Z","updated_at":"2016-12-16T11:01:53Z","body":"@mykolq Спс, а подскажи какая версия у тебя сервака заббикса и клиента на винде?\r\nИ можешь тогда батник  свой показать полностью, потому что у меня все также не валидные данные json, я с тех пор не ковырял это."}}
{"actor":{"display_login":"Nemles"}}