{"id":712,"date":"2016-05-10T20:54:58","date_gmt":"2016-05-10T12:54:58","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=712"},"modified":"2016-05-10T20:54:58","modified_gmt":"2016-05-10T12:54:58","slug":"nagios%e6%8f%90%e7%a4%bacheck_nrpe-error-could-not-complete-ssl-handshake","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/nagios%e6%8f%90%e7%a4%bacheck_nrpe-error-could-not-complete-ssl-handshake\/","title":{"rendered":"nagios\u63d0\u793aCHECK_NRPE Error &#8211; Could not complete SSL handshake"},"content":{"rendered":"<p>nagios\u62a5CHECK_NRPE Error &#8211; Could not complete SSL handshake\u9519\u8bef.<\/p>\n<p>\u5728nagios\u670d\u52a1\u5668\u7aef:<br \/>\n# \/usr\/local\/nagios\/libexec\/check_nrpe -H\u00a0 IP(\u88ab\u76d1\u63a7\u7aefIP)<br \/>\nCHECK_NRPE: Error &#8211; Could not complete SSL handshake.<\/p>\n<p>\u5f7b\u5e95\u8fd9\u79cd\u95ee\u9898,\u9700\u8981\u68c0\u67e5\u4ee5\u4e0b\u51e0\u70b9:<br \/>\n&lt;1&gt;\u68c0\u67e5nagios\u670d\u52a1\u5668\u7aef\u3001\u88ab\u76d1\u63a7\u7aefopenssh\u3001openssl\u3001openssl-devel\u670d\u52a1\u662f\u5426\u5b89\u88c5,\u4e14\u7248\u672c\u662f\u5426\u76f8\u540c.<br \/>\n\u53ef\u4ee5\u901a\u8fc7yum search openssh openssl openssl-devel \u67e5\u770b\u662f\u5426\u5b89\u88c5.<br \/>\n\u53ef\u4ee5\u901a\u8fc7 yum -y install openssh openssl openssl-devel \u5b89\u88c5\u670d\u52a1<\/p>\n<p>&lt;2&gt;\u88ab\u76d1\u63a7\u7aef,\u68c0\u67e5nrpe\u914d\u7f6e\u6587\u4ef6\u4e2d\u662f\u5426\u52a0\u5165\u4e86nagios\u670d\u52a1\u5668\u7aef\u7684IP,\u5982\u4e0b:<br \/>\n#vi \/etc\/xinetd.d\/nrpe<br \/>\nonly_from 127.0.0.1 IP(nagios\u670d\u52a1\u6bb5IP)<\/p>\n<p>#vi \/usr\/local\/nagios\/etc\/nrpe.cfg<br \/>\nallowed_hosts 127.0.0.1 IP(nagios\u670d\u52a1\u6bb5IP)<\/p>\n<p>\u7136\u540e\u91cd\u542f xinetd\u670d\u52a1<br \/>\nservice xinetd restart<\/p>\n<p>&lt;3&gt;\u88ab\u76d1\u63a7\u7aef,\u68c0\u67e5\u9632\u706b\u5899\u8bbe\u7f6e,\u770bnagios\u670d\u52a1\u5668IP\u662f\u5426\u52a0\u5165\u9632\u706b\u5899(iptables)\u5141\u8bb8\u5217\u8868.\u6216\u8005\u5b89\u88c5csf,\u5728\/etc\/csf\/csf.allow \u4e2d\u6dfb\u52a0nagios\u670d\u52a1\u5668IP.<\/p>\n<p>\u5728nagios\u670d\u52a1\u5668\u7aef:<br \/>\n# \/usr\/local\/nagios\/libexec\/check_nrpe -H\u00a0 IP(\u88ab\u76d1\u63a7\u7aefIP)<br \/>\nNRPE v2.12<br \/>\n\u8fd9\u6837\u8868\u793a\u6d4b\u8bd5\u8fde\u63a5\u6b63\u5e38\u4e86.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nagios\u62a5CHECK_NRPE Error &#8211; Could not complete SSL  &#8230; <a title=\"nagios\u63d0\u793aCHECK_NRPE Error &#8211; Could not complete SSL handshake\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/nagios%e6%8f%90%e7%a4%bacheck_nrpe-error-could-not-complete-ssl-handshake\/\" aria-label=\"\u9605\u8bfb nagios\u63d0\u793aCHECK_NRPE Error &#8211; Could not complete SSL handshake\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[38,271],"class_list":["post-712","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-nagios"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=712"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/712\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/712\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}