{"id":696,"date":"2022-09-12T14:47:02","date_gmt":"2022-09-12T12:47:02","guid":{"rendered":"http:\/\/cln.io\/blog\/?p=696"},"modified":"2023-03-18T15:25:16","modified_gmt":"2023-03-18T13:25:16","slug":"monitoring-udm-with-uptimerobot","status":"publish","type":"post","link":"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/","title":{"rendered":"Monitoring a UDM Pro with UptimeRobot (Dream Machine Pro)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A quick guide on how to monitor uptime \/ connections of a ubiquity UDM pro 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>It&#8217;s 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-a-cloudkey-with-uptimerobot\/\" target=\"_blank\" rel=\"noreferrer noopener\">For CloudKey monitoring, there is my guide here<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On this page<\/p>\n\n\n\n<nav aria-label=\"Table of Contents\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/#adding-cron-jobs-to-the-udm\">Adding cron jobs to the UDM<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/#setting-up-a-heartbeat-monitor-on-a-udm\">Setting up a heartbeat monitor on a UDM<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/#ssh-access-to-the-udm\">SSH access to the UDM<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/#ssh-ing-using-the-debug-interface\">SSH&#8217;ing using the debug interface<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/#ssh-using-a-direct-connection\">SSH using a direct connection<\/a><\/li><\/ol><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/monitoring-udm-with-uptimerobot\/#creating-the-cronjob\">Creating the cronjob<\/a><\/li><\/ol><\/li><\/ol><\/nav>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-38-1024x375.png\" alt=\"\" class=\"wp-image-730\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-38-1024x375.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-38-300x110.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-38-768x281.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-38.png 1074w\" 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=\"871\" height=\"473\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-41.png\" alt=\"\" class=\"wp-image-717\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-41.png 871w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-41-300x163.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-41-768x417.png 768w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"adding-cron-jobs-to-the-udm\">Adding cron jobs to the UDM<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cln.io\/blog\/adding-cronjobs-to-udm\/\" target=\"_blank\" rel=\"noreferrer noopener\">Make sure to follow my guide here how to get cronjobs working on a UDM<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setting-up-a-heartbeat-monitor-on-a-udm\">Setting up a heartbeat monitor on a UDM<\/h2>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\">NOTE: 04\/2023: the location has changed from \/mnt\/data to \/data, so screenshots are out of date<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ssh-access-to-the-udm\">SSH access to the UDM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">there are two ways to get SSH access, enabling it and SSH&#8217;ing into the box, or using the debug option from the Unifi manage interface<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"ssh-ing-using-the-debug-interface\">SSH&#8217;ing using the debug interface<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">head over to your Unifi network interface and go to &#8220;unifi devices&#8221;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"494\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.06.00.png\" alt=\"\" class=\"wp-image-1399\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.06.00.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.06.00-300x193.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Locate your UDM and click on it, go to settings and in the bottom open the &#8220;Manage&#8221; tab and click on debug<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"1024\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.03.41-655x1024.png\" alt=\"\" class=\"wp-image-1398\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.03.41-655x1024.png 655w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.03.41-192x300.png 192w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.03.41-768x1201.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-18-at-14.03.41.png 802w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">this will open a live SSH session to your UDM<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"ssh-using-a-direct-connection\">SSH using a direct connection<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">you can directly SSH into the UDM with the credentials configured under &#8220;<a rel=\"noreferrer noopener\" href=\"https:\/\/unifi.ui.com\/\" target=\"_blank\">Console Settings<\/a>&#8221; <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"281\" height=\"442\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-42.png\" alt=\"\" class=\"wp-image-721\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-42.png 281w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-42-191x300.png 191w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><figcaption class=\"wp-element-caption\">set an SSH password (username is root)<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"533\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-39.png\" alt=\"\" class=\"wp-image-707\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-39.png 839w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-39-300x191.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-39-768x488.png 768w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"creating-the-cronjob\">Creating the cronjob<\/h3>\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=\"\">mkdir \/data\/cronjobs\/\ntouch \/data\/cronjobs\/uptimerobot\nvi \/data\/cronjobs\/uptimerobot\n* * * * * root curl -fsL \"https:\/\/heartbeat.uptimerobot.com\/xxx\" >\/dev\/null 2>&amp;1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">make sure to execute the copy script <\/p>\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=\"\">\/data\/on_boot.d\/25-add-cron-jobs.sh<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"540\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-40.png\" alt=\"\" class=\"wp-image-714\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-40.png 846w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-40-300x191.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-40-768x490.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">every minute your UDM will now hit that URL and tadaa! &#x1f389; you now have monitoring on your UDM Pro<\/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\/thomas-jensen-iSh9yqYSd08-unsplash-1024x681.jpg\" alt=\"\" class=\"wp-image-744\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/thomas-jensen-iSh9yqYSd08-unsplash-1024x681.jpg 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/thomas-jensen-iSh9yqYSd08-unsplash-300x199.jpg 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/thomas-jensen-iSh9yqYSd08-unsplash-768x511.jpg 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/thomas-jensen-iSh9yqYSd08-unsplash-1536x1021.jpg 1536w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/thomas-jensen-iSh9yqYSd08-unsplash-2048x1362.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Photo by <a href=\"https:\/\/unsplash.com\/@thomasjsn?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Thomas Jensen<\/a> on <a href=\"https:\/\/unsplash.com\/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Unsplash<\/a><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick guide on how to monitor uptime \/ connections of a ubiquity UDM pro with UptimeRobot heartbeats URL&#8217;s I&#8217;m very pleased with UptimeRobot [affiliate link] and their heartbeat monitoring.It&#8217;s an URL you need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":701,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,38,37],"tags":[],"class_list":["post-696","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\/696","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=696"}],"version-history":[{"count":21,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/696\/revisions"}],"predecessor-version":[{"id":1410,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/696\/revisions\/1410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media\/701"}],"wp:attachment":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media?parent=696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/categories?post=696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/tags?post=696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}