{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/server-tools/issues/297","labels_url":"https://api.github.com/repos/OCA/server-tools/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/OCA/server-tools/issues/297/comments","events_url":"https://api.github.com/repos/OCA/server-tools/issues/297/events","html_url":"https://github.com/OCA/server-tools/pull/297","id":118161789,"number":297,"title":"[ADD] dead_mans_switch_client, dead_mans_switch_server","user":{"login":"hbrunn","id":2563186,"avatar_url":"https://avatars.githubusercontent.com/u/2563186?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrunn","html_url":"https://github.com/hbrunn","followers_url":"https://api.github.com/users/hbrunn/followers","following_url":"https://api.github.com/users/hbrunn/following{/other_user}","gists_url":"https://api.github.com/users/hbrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrunn/subscriptions","organizations_url":"https://api.github.com/users/hbrunn/orgs","repos_url":"https://api.github.com/users/hbrunn/repos","events_url":"https://api.github.com/users/hbrunn/events{/privacy}","received_events_url":"https://api.github.com/users/hbrunn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OCA/server-tools/labels/8.0","name":"8.0","color":"000000"},{"url":"https://api.github.com/repos/OCA/server-tools/labels/needs%20review","name":"needs review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OCA/server-tools/milestones/3","html_url":"https://github.com/OCA/server-tools/milestones/8.0","labels_url":"https://api.github.com/repos/OCA/server-tools/milestones/3/labels","id":983662,"number":3,"title":"8.0","description":"","creator":{"login":"max3903","id":939952,"avatar_url":"https://avatars.githubusercontent.com/u/939952?v=3","gravatar_id":"","url":"https://api.github.com/users/max3903","html_url":"https://github.com/max3903","followers_url":"https://api.github.com/users/max3903/followers","following_url":"https://api.github.com/users/max3903/following{/other_user}","gists_url":"https://api.github.com/users/max3903/gists{/gist_id}","starred_url":"https://api.github.com/users/max3903/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max3903/subscriptions","organizations_url":"https://api.github.com/users/max3903/orgs","repos_url":"https://api.github.com/users/max3903/repos","events_url":"https://api.github.com/users/max3903/events{/privacy}","received_events_url":"https://api.github.com/users/max3903/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":32,"state":"open","created_at":"2015-02-17T21:52:00Z","updated_at":"2015-11-21T02:00:51Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-21T02:00:19Z","updated_at":"2015-11-21T05:37:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/server-tools/pulls/297","html_url":"https://github.com/OCA/server-tools/pull/297","diff_url":"https://github.com/OCA/server-tools/pull/297.diff","patch_url":"https://github.com/OCA/server-tools/pull/297.patch"},"body":"==========================\r\nDead man's switch (server)\r\n==========================\r\n\r\nThis module receives status messages by `dead_mans_switch_client` and notifies\r\nyou if a client instance is didn't check back in time.\r\n\r\nAs a side effect, you'll also get some statistical data from your client\r\ninstances.\r\n\r\nUsage\r\n=====\r\n\r\nInstall `dead_mans_switch_client` on a customer instance and configure them as\r\ndescribed in that module's documentation. The clients will register themselves\r\nwith the server automatically. They will show up with their database uuid,\r\nyou'll have to assign a human readable description yourself.\r\n\r\nAt this point, you can assign a customer to this client instance for reporting\r\npurposes, and, more important, add followers to the instance. They will be\r\nnotified in case the instance doesn't check back in time. Notification are only\r\nturned on for instances in state 'active', instances in states 'new' or\r\n'suspended' will be ignored.\r\n\r\nYou'll find the instances' current state at Reporting/Customer instances.\r\n\r\nKnown issues / Roadmap\r\n======================\r\n\r\n* matching is done via the database's uuid, so take care to change this if you\r\n  clone a database\r\n* logging some postgres stats and disk usage would be nice too\r\n\r\n==========================\r\nDead man's switch (client)\r\n==========================\r\n\r\nThis module is the client part of `dead_mans_switch_server`. It is responsible\r\nof sending the server status updates, which in turn takes action if those\r\nupdates don't come in time.\r\n\r\nConfiguration\r\n=============\r\n\r\nAfter installing this module, you need to fill in the system parameter\r\n`dead_mans_switch_client.url`. This needs to be the full URL to the server's\r\ncontroller, usually of the form https://your.server/dead_mans_switch/alive\r\n\r\nThis module attempts to send CPU and RAM statistics to the server. While this\r\nis not mandatory, it's helpful for assessing a server's health. If you want\r\nthis, you need to install `psutil`.\r\n\r\nYou can also have the currently online users logged, but this only works if\r\nthe `im_chat` module is installed.\r\n\r\nUsage\r\n=====\r\n\r\nThis module doesn't have any visible effect on the client.\r\n\r\nKnown issues / Roadmap\r\n======================\r\n\r\n* certificate pinning would be nice"},"comment":{"url":"https://api.github.com/repos/OCA/server-tools/issues/comments/158591964","html_url":"https://github.com/OCA/server-tools/pull/297#issuecomment-158591964","issue_url":"https://api.github.com/repos/OCA/server-tools/issues/297","id":158591964,"user":{"login":"elicoidal","id":7600613,"avatar_url":"https://avatars.githubusercontent.com/u/7600613?v=3","gravatar_id":"","url":"https://api.github.com/users/elicoidal","html_url":"https://github.com/elicoidal","followers_url":"https://api.github.com/users/elicoidal/followers","following_url":"https://api.github.com/users/elicoidal/following{/other_user}","gists_url":"https://api.github.com/users/elicoidal/gists{/gist_id}","starred_url":"https://api.github.com/users/elicoidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elicoidal/subscriptions","organizations_url":"https://api.github.com/users/elicoidal/orgs","repos_url":"https://api.github.com/users/elicoidal/repos","events_url":"https://api.github.com/users/elicoidal/events{/privacy}","received_events_url":"https://api.github.com/users/elicoidal/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T05:37:10Z","updated_at":"2015-11-21T05:37:10Z","body":"@hbrunn Thanks for this contribution! We will test it next week. We will probably propose a backport to v7 soon."}}