{"id":2028,"date":"2017-12-07T08:52:23","date_gmt":"2017-12-07T08:52:23","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2028"},"modified":"2020-01-09T09:44:06","modified_gmt":"2020-01-09T09:44:06","slug":"monitor-and-restart-offline-slaves","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/monitor-and-restart-offline-slaves\/","title":{"rendered":"Monitor and Restart Offline Slaves"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Monitor and Restart Offline Slaves<\/strong><br \/>\nIf you facing a problem of jenkins node disconnect automatically, you can try this script-<\/p>\n<p>This script can monitor and restart offline nodes if they are not disconnected manually.<br \/>\nOf course you can disable email notification. Thanks author for email notification.<\/p>\n<p>You can run this script in Jenkins Console. But I think it is good idea to create Jenkins task, which will be run periodically (for example hourly). Groovy Plugin needs for Jenkins jobs.<\/p>\n<p><a href=\"http:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Moni...start+Offline+Slaves\" target=\"_blank\" rel=\"noopener\">wiki.jenkins-ci.org\/display\/JENKINS\/Moni&#8230;start+Offline+Slaves<\/a><br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Monitor and Restart Offline Slaves If you facing a problem of jenkins node disconnect automatically, you can try this script- This script can monitor and restart&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[435],"class_list":["post-2028","post","type-post","status-publish","format-standard","hentry","category-jenkins","tag-monitor"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2028"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2028\/revisions"}],"predecessor-version":[{"id":2029,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2028\/revisions\/2029"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}