{"id":555,"date":"2018-07-14T03:45:12","date_gmt":"2018-07-14T02:45:12","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=555"},"modified":"2018-07-14T03:45:12","modified_gmt":"2018-07-14T02:45:12","slug":"check_http","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=555","title":{"rendered":"check_http"},"content":{"rendered":"<p>The Name field in a check_http-rule is the name of <strong>the rule<\/strong>, not the host!<\/p>\n<p>I tripped on this when I tried to check an URL and the certificate age of the same host. The certificate check failed with TCP Connection failed, since there already was a rule by that name. Not very helpful error message, BTW&#8230;<\/p>\n<p><a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/wp-content\/uploads\/2018\/07\/check_http_cap.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-556 size-full aligncenter\" src=\"https:\/\/tollana.d-tor.org\/notes-to-self\/wp-content\/uploads\/2018\/07\/check_http_cap.png\" alt=\"\" width=\"579\" height=\"116\" srcset=\"https:\/\/tollana.d-tor.org\/notes-to-self\/wp-content\/uploads\/2018\/07\/check_http_cap.png 579w, https:\/\/tollana.d-tor.org\/notes-to-self\/wp-content\/uploads\/2018\/07\/check_http_cap-300x60.png 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Name field in a check_http-rule is the name of the rule, not the host! I tripped on this when I tried to check an URL and the certificate age of the same host. The certificate check failed with TCP Connection failed, since there already was a rule by that name. Not very helpful error &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=555\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">check_http<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[27],"class_list":["post-555","post","type-post","status-publish","format-standard","hentry","category-check_mk","tag-check_mk"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=555"}],"version-history":[{"count":2,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/555\/revisions"}],"predecessor-version":[{"id":558,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/555\/revisions\/558"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}