{"id":667,"date":"2022-09-10T20:20:33","date_gmt":"2022-09-10T18:20:33","guid":{"rendered":"http:\/\/cln.io\/blog\/?p=667"},"modified":"2022-11-30T22:11:28","modified_gmt":"2022-11-30T20:11:28","slug":"monitoring-a-cloudkey-with-uptimerobot","status":"publish","type":"post","link":"https:\/\/cln.io\/blog\/monitoring-a-cloudkey-with-uptimerobot\/","title":{"rendered":"Monitoring a Ubiquiti CloudKey with UptimeRobot"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A quick guide on how to monitor cloud keys with <a href=\"https:\/\/uptimerobot.com\/?rid=36a5594a8c1fa2\">UptimeRobot<\/a> heartbeats URL&#8217;s<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m very pleased with <a href=\"https:\/\/uptimerobot.com\/?rid=36a5594a8c1fa2\" target=\"_blank\" rel=\"noreferrer noopener\">UptimeRobot<\/a> [affiliate link] and their heartbeat monitoring.<br>its an URL you need to call\/visit every x minutes\/hours\/days, whatever you want, and if its not hit within x time, outside of the grace period, it will alert you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cln.io\/blog\/monitoring-an-udm-with-uptimerobot\/\" target=\"_blank\" rel=\"noreferrer noopener\">For UDM (Pro) monitoring, there is my guide here<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"451\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-32-1024x451.png\" alt=\"\" class=\"wp-image-671\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-32-1024x451.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-32-300x132.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-32-768x338.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-32.png 1028w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"477\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-34.png\" alt=\"\" class=\"wp-image-672\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-34.png 873w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-34-300x164.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-34-768x420.png 768w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Setting up a heartbeat monitor on a CloudKey<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SSH into the CloudKey with the credentials configured under &#8220;Settings &gt; Site&#8221;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"160\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-35.png\" alt=\"\" class=\"wp-image-674\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-35.png 953w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-35-300x50.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-35-768x129.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"284\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-36.png\" alt=\"\" class=\"wp-image-676\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-36.png 896w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-36-300x95.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-36-768x243.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">crontab -e \n* * * * * wget --spider \"https:\/\/heartbeat.uptimerobot.com\/xxx\" >\/dev\/null 2>&amp;1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">if you are unfamiliar with vi, after typing &#8220;crontab -e&#8221; press the &#8220;insert&#8221; key on your keyboard, and scroll down with the arrow keys where you would like to paste.<br>paste your cron entry in there by right-clicking the mouse or SHIFT + INSERT.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to save the crontab, hit escape, type <strong>:wq!<\/strong>    ( double colon, write, quit, force ) and hit enter<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">every minute your CloudKey will now hit that URL and tadaa! &#x1f389; you now have monitoring on your cloud key<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"681\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/nasa-Q1p7bh3SHj8-unsplash-1024x681.jpg\" alt=\"\" class=\"wp-image-753\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/nasa-Q1p7bh3SHj8-unsplash-1024x681.jpg 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/nasa-Q1p7bh3SHj8-unsplash-300x200.jpg 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/nasa-Q1p7bh3SHj8-unsplash-768x511.jpg 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/nasa-Q1p7bh3SHj8-unsplash-1536x1022.jpg 1536w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/nasa-Q1p7bh3SHj8-unsplash-2048x1363.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Photo by <a href=\"https:\/\/unsplash.com\/@nasa?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">NASA<\/a> on <a href=\"https:\/\/unsplash.com\/s\/photos\/internet-connection?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Unsplash<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A quick guide on how to monitor cloud keys with UptimeRobot heartbeats URL&#8217;s I&#8217;m very pleased with UptimeRobot [affiliate link] and their heartbeat monitoring.its an URL you need to call\/visit every x minutes\/hours\/days, whatever you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":669,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,38,37],"tags":[],"class_list":["post-667","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it","category-monitoring","category-networking"],"_links":{"self":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":8,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"predecessor-version":[{"id":1181,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/667\/revisions\/1181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media\/669"}],"wp:attachment":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/categories?post=667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/tags?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}