{"action":"created","issue":{"url":"https://api.github.com/repos/dav3860/vmbix/issues/19","labels_url":"https://api.github.com/repos/dav3860/vmbix/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/dav3860/vmbix/issues/19/comments","events_url":"https://api.github.com/repos/dav3860/vmbix/issues/19/events","html_url":"https://github.com/dav3860/vmbix/issues/19","id":73296097,"number":19,"title":"datastore.discovery does not distinguish between different datastore types","user":{"login":"S-O","id":12251478,"avatar_url":"https://avatars.githubusercontent.com/u/12251478?v=3","gravatar_id":"","url":"https://api.github.com/users/S-O","html_url":"https://github.com/S-O","followers_url":"https://api.github.com/users/S-O/followers","following_url":"https://api.github.com/users/S-O/following{/other_user}","gists_url":"https://api.github.com/users/S-O/gists{/gist_id}","starred_url":"https://api.github.com/users/S-O/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S-O/subscriptions","organizations_url":"https://api.github.com/users/S-O/orgs","repos_url":"https://api.github.com/users/S-O/repos","events_url":"https://api.github.com/users/S-O/events{/privacy}","received_events_url":"https://api.github.com/users/S-O/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T11:56:01Z","updated_at":"2015-12-16T15:33:52Z","closed_at":null,"body":"`zabbix_get -s 127.0.0.1 -p 12053 -k 'datastore.discovery'`\r\n\r\n```\r\nException in thread \"Thread-3\" java.lang.ClassCastException: com.vmware.vim25.NasDatastoreInfo cannot be cast to com.vmware.vim25.VmfsDatastoreInfo\r\n        at net.djarvur.vmbix.VmBix$Connection.getDatastores(Unknown Source)\r\n        at net.djarvur.vmbix.VmBix$Connection.checkAllPatterns(Unknown Source)\r\n        at net.djarvur.vmbix.VmBix$Connection.run(Unknown Source)\r\n```\r\n\r\nUsing vSphere Perl SDK I can see that a Datastore Object has a Property 'summary' of type 'DatastoreSummary'. It has a field named 'type' which can have a value which is not 'VMFS'.\r\nIn my case it is 'NFS'. Maybe this can help you."},"comment":{"url":"https://api.github.com/repos/dav3860/vmbix/issues/comments/165145060","html_url":"https://github.com/dav3860/vmbix/issues/19#issuecomment-165145060","issue_url":"https://api.github.com/repos/dav3860/vmbix/issues/19","id":165145060,"user":{"login":"acxadoom","id":16323076,"avatar_url":"https://avatars.githubusercontent.com/u/16323076?v=3","gravatar_id":"","url":"https://api.github.com/users/acxadoom","html_url":"https://github.com/acxadoom","followers_url":"https://api.github.com/users/acxadoom/followers","following_url":"https://api.github.com/users/acxadoom/following{/other_user}","gists_url":"https://api.github.com/users/acxadoom/gists{/gist_id}","starred_url":"https://api.github.com/users/acxadoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acxadoom/subscriptions","organizations_url":"https://api.github.com/users/acxadoom/orgs","repos_url":"https://api.github.com/users/acxadoom/repos","events_url":"https://api.github.com/users/acxadoom/events{/privacy}","received_events_url":"https://api.github.com/users/acxadoom/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T15:33:52Z","updated_at":"2015-12-16T15:33:52Z","body":"Hi I have fixed this issue, see into open issue the resolution."}}