{"action":"created","issue":{"url":"https://api.github.com/repos/oshi/oshi/issues/249","repository_url":"https://api.github.com/repos/oshi/oshi","labels_url":"https://api.github.com/repos/oshi/oshi/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/oshi/oshi/issues/249/comments","events_url":"https://api.github.com/repos/oshi/oshi/issues/249/events","html_url":"https://github.com/oshi/oshi/issues/249","id":172317133,"number":249,"title":"oshi and distant system monitoring ","user":{"login":"afnanRhy","id":17906145,"avatar_url":"https://avatars.githubusercontent.com/u/17906145?v=3","gravatar_id":"","url":"https://api.github.com/users/afnanRhy","html_url":"https://github.com/afnanRhy","followers_url":"https://api.github.com/users/afnanRhy/followers","following_url":"https://api.github.com/users/afnanRhy/following{/other_user}","gists_url":"https://api.github.com/users/afnanRhy/gists{/gist_id}","starred_url":"https://api.github.com/users/afnanRhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afnanRhy/subscriptions","organizations_url":"https://api.github.com/users/afnanRhy/orgs","repos_url":"https://api.github.com/users/afnanRhy/repos","events_url":"https://api.github.com/users/afnanRhy/events{/privacy}","received_events_url":"https://api.github.com/users/afnanRhy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oshi/oshi/labels/question","name":"question","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-21T11:41:18Z","updated_at":"2016-09-02T09:53:33Z","closed_at":null,"body":"Hello, I am Computer Engineering's student , as part of my end of study internship, I need to make a application to supervise a System (CPU, Memory, Disk)\r\nI checked OSHI  Librerie , What I'd like to know is if I can supervise a machine remotely from a set of information provided (port, IP ...)  Can you give me a track to succeed my task,"},"comment":{"url":"https://api.github.com/repos/oshi/oshi/issues/comments/244333532","html_url":"https://github.com/oshi/oshi/issues/249#issuecomment-244333532","issue_url":"https://api.github.com/repos/oshi/oshi/issues/249","id":244333532,"user":{"login":"afnanRhy","id":17906145,"avatar_url":"https://avatars.githubusercontent.com/u/17906145?v=3","gravatar_id":"","url":"https://api.github.com/users/afnanRhy","html_url":"https://github.com/afnanRhy","followers_url":"https://api.github.com/users/afnanRhy/followers","following_url":"https://api.github.com/users/afnanRhy/following{/other_user}","gists_url":"https://api.github.com/users/afnanRhy/gists{/gist_id}","starred_url":"https://api.github.com/users/afnanRhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afnanRhy/subscriptions","organizations_url":"https://api.github.com/users/afnanRhy/orgs","repos_url":"https://api.github.com/users/afnanRhy/repos","events_url":"https://api.github.com/users/afnanRhy/events{/privacy}","received_events_url":"https://api.github.com/users/afnanRhy/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T09:53:33Z","updated_at":"2016-09-02T09:53:33Z","body":"Thank your lot Mr.Dbwiddis  for your solution I'll try to start with this exemple :)\n\nDate: Thu, 1 Sep 2016 21:48:47 -0700\nFrom: notifications@github.com\nTo: oshi@noreply.github.com\nCC: afnan_rhy@hotmail.com; author@noreply.github.com\nSubject: Re: [oshi/oshi] oshi and distant system monitoring (#249)\n\nJust for fun I did a simple test of getting OSHI info to JMX using Metrics.\n\n\nimport com.codahale.metrics.Gauge;\nimport com.codahale.metrics.JmxReporter;\nimport com.codahale.metrics.MetricRegistry;\n\nimport oshi.hardware.CentralProcessor;\nimport oshi.hardware.HardwareAbstractionLayer;\nimport oshi.util.Util;\n\npublic class Metrics {\n    public static final MetricRegistry METRICS = new MetricRegistry();\n\n    public static void main(String[] args) {\n        SystemInfo si = new SystemInfo();\n        HardwareAbstractionLayer hw = si.getHardware();\n        CentralProcessor proc = hw.getProcessor();\n\n        METRICS.register(MetricRegistry.name(Metrics.class, \"test\", \"oshi.hardware.processor.cpu\"),\n                new Gauge<Double>() {\n                    @Override\n                    public Double getValue() {\n                        return proc.getSystemCpuLoad();\n                    }\n                });\n\n        final JmxReporter reporter = JmxReporter.forRegistry(METRICS).build();\n        reporter.start();\n\n        Util.sleep(100000);\n    }\n\n}\n\n\nThis sets up a JMX MBean ... here's a jconsole screenshot.\n\n\n\n\n\nYou can set this up for remote JMX by starting the above class using:\n\n\n-Dcom.sun.management.jmxremote\n-Dcom.sun.management.jmxremote.port=12345\n-Dcom.sun.management.jmxremote.authenticate=false\n-Dcom.sun.management.jmxremote.ssl=false\n\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub, or mute the thread.\n\n\n  \n  \n\n\n \n\t\n      \n\t\tAnalyse des malwares effectuée \t\t\n\t\n\n \t\t \t   \t\t  "}}
{"actor":{"display_login":"afnanRhy"}}