{"id":6645,"date":"2021-02-11T17:10:12","date_gmt":"2021-02-11T17:10:12","guid":{"rendered":"https:\/\/www.n-able.com\/?p=6645"},"modified":"2024-05-14T16:07:42","modified_gmt":"2024-05-14T15:07:42","slug":"most-common-automation-requests-and-how-solve-them-ep-2","status":"publish","type":"post","link":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2","title":{"rendered":"Most common automation requests and how to solve them: Ep 2"},"content":{"rendered":"<p>This is the second part of my new series where I answer common automation questions from our partners. Today I\u2019m going to look at monitoring backups.<\/p>\n<p><b>I\u2019m creating backups of my network devices on that server and I\u2019d like to monitor if the backup was saved locally. How do I do that?<\/b><\/p>\n<p>While talking to this partner, I learned he backed up config files to a different folder for each device, and he wanted to monitor each folder individually. The basic premise was that, if there was no file written in the past 30 hours, the most recent backup had likely failed. If that happened, he wanted to receive an alert.<\/p>\n<p>To do this, we created this automation policy. You can find it\u00a0<a class=\"ext\" href=\"https:\/\/success.n-able.com\/kb\/solarwinds_rmm\/Monitor-Most-Recent-File-in-Folder-for-Age\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>\u00a0in the Automation Cookbook.<\/p>\n<p>The policy looks in a folder setup as an input parameter and then checks for the newest file. It checks that file for its age, and if it\u2019s more than the preset number of hours old, it triggers an alert in N&#8209;sight<sup>\u00ae<\/sup>\u00a0RMM. A version of the script for N&#8209;able N&#8209;central<sup>\u00ae<\/sup>\u00a0exists\u00a0<a class=\"ext\" href=\"https:\/\/success.n-able.com\/kb\/solarwinds_rmm\/Monitor-Most-Recent-File-in-Folder-for-Age-NC\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>If you want to go a bit further, you can modify the script to check for file count, file size, content, etc. You can do this either via native objects or, if you prefer, through a PowerShell script. Whichever way you want to do it, you can enhance this basic example to fit your needs.<\/p>\n<p>That\u2019s all for this week. Feel free to reach out to me if you want to discuss this further; my contact details are below.<\/p>\n<p>&nbsp;<\/p>\n<p><b>This example and others to come are things you can do with automation within your platform. We provide the scripts as part of the Automation Cookbook and hope you will find them useful. If you have scripts you want to contribute to the cookbook, you can go to\u00a0<a href=\"https:\/\/www.n-able.com\/cookbook\" target=\"_blank\" rel=\"noopener\">www.n-able.com.com\/cookbook<\/a>\u00a0and click the upload button there, or you can email me directly at\u00a0<a href=\"mailto:marcandre.tanguay@n-able.com.com\">marcandre.tanguay@n-able.com.com<\/a>.<\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b><em>Marc-Andre Tanguay is head automation nerd at n-able.com. You can follow him on Twitter at\u00a0<a class=\"ext\" href=\"https:\/\/twitter.com\/automation_nerd\" target=\"_blank\" rel=\"noopener noreferrer\">@automation_nerd<\/a>.<\/em><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the second part of my new series where I answer common automation questions from our partners. Today I\u2019m going to look at monitoring backups. I\u2019m creating backups of&#8230;<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-6645","post","type-post","status-publish","format-standard","hentry","topic-automation","topic-head-nerds"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Most common automation requests and how to solve them: Ep 2 - N-able<\/title>\n<meta name=\"description\" content=\"This blog series looks at the most common automation requests he gets from partners\u2014and how to solve them. Today, we share a script created to help monitor backups.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Most common automation requests and how to solve them: Ep 2 - N-able\" \/>\n<meta property=\"og:description\" content=\"This blog series looks at the most common automation requests he gets from partners\u2014and how to solve them. Today, we share a script created to help monitor backups.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\" \/>\n<meta property=\"og:site_name\" content=\"N-able\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/NableMSP\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-11T17:10:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-14T15:07:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/03\/share-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Marc-Andre Tanguay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Nable\" \/>\n<meta name=\"twitter:site\" content=\"@Nable\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marc-Andre Tanguay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\"},\"author\":{\"name\":\"Marc-Andre Tanguay\",\"@id\":\"https:\/\/www.n-able.com\/fr#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5\"},\"headline\":\"Most common automation requests and how to solve them: Ep 2\",\"datePublished\":\"2021-02-11T17:10:12+00:00\",\"dateModified\":\"2024-05-14T15:07:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\"},\"wordCount\":364,\"publisher\":{\"@id\":\"https:\/\/www.n-able.com\/fr#organization\"},\"articleSection\":[\"Automation\",\"Head Nerds\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\",\"url\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\",\"name\":\"Most common automation requests and how to solve them: Ep 2 - N-able\",\"isPartOf\":{\"@id\":\"https:\/\/www.n-able.com\/fr#website\"},\"datePublished\":\"2021-02-11T17:10:12+00:00\",\"dateModified\":\"2024-05-14T15:07:42+00:00\",\"description\":\"This blog series looks at the most common automation requests he gets from partners\u2014and how to solve them. Today, we share a script created to help monitor backups.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Automation\",\"item\":\"https:\/\/www.n-able.com\/fr\/blog\/category\/automation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Most common automation requests and how to solve them: Ep 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.n-able.com\/fr#website\",\"url\":\"https:\/\/www.n-able.com\/fr\",\"name\":\"N-able\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.n-able.com\/fr#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.n-able.com\/fr?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.n-able.com\/fr#organization\",\"name\":\"N-able\",\"url\":\"https:\/\/www.n-able.com\/fr\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.n-able.com\/fr#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg\",\"contentUrl\":\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"N-able\"},\"image\":{\"@id\":\"https:\/\/www.n-able.com\/fr#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/NableMSP\",\"https:\/\/x.com\/Nable\",\"https:\/\/www.linkedin.com\/company\/n-able\",\"https:\/\/www.youtube.com\/channel\/UClnp77HHg4aME-S-3fWQhFw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.n-able.com\/fr#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5\",\"name\":\"Marc-Andre Tanguay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g\",\"caption\":\"Marc-Andre Tanguay\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Most common automation requests and how to solve them: Ep 2 - N-able","description":"This blog series looks at the most common automation requests he gets from partners\u2014and how to solve them. Today, we share a script created to help monitor backups.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2","og_locale":"fr_FR","og_type":"article","og_title":"Most common automation requests and how to solve them: Ep 2 - N-able","og_description":"This blog series looks at the most common automation requests he gets from partners\u2014and how to solve them. Today, we share a script created to help monitor backups.","og_url":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2","og_site_name":"N-able","article_publisher":"https:\/\/www.facebook.com\/NableMSP","article_published_time":"2021-02-11T17:10:12+00:00","article_modified_time":"2024-05-14T15:07:42+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/03\/share-image.jpg","type":"image\/jpeg"}],"author":"Marc-Andre Tanguay","twitter_card":"summary_large_image","twitter_creator":"@Nable","twitter_site":"@Nable","twitter_misc":{"\u00c9crit par":"Marc-Andre Tanguay","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2#article","isPartOf":{"@id":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2"},"author":{"name":"Marc-Andre Tanguay","@id":"https:\/\/www.n-able.com\/fr#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5"},"headline":"Most common automation requests and how to solve them: Ep 2","datePublished":"2021-02-11T17:10:12+00:00","dateModified":"2024-05-14T15:07:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2"},"wordCount":364,"publisher":{"@id":"https:\/\/www.n-able.com\/fr#organization"},"articleSection":["Automation","Head Nerds"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2","url":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2","name":"Most common automation requests and how to solve them: Ep 2 - N-able","isPartOf":{"@id":"https:\/\/www.n-able.com\/fr#website"},"datePublished":"2021-02-11T17:10:12+00:00","dateModified":"2024-05-14T15:07:42+00:00","description":"This blog series looks at the most common automation requests he gets from partners\u2014and how to solve them. Today, we share a script created to help monitor backups.","breadcrumb":{"@id":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.n-able.com\/fr\/blog\/most-common-automation-requests-and-how-solve-them-ep-2#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Automation","item":"https:\/\/www.n-able.com\/fr\/blog\/category\/automation"},{"@type":"ListItem","position":2,"name":"Most common automation requests and how to solve them: Ep 2"}]},{"@type":"WebSite","@id":"https:\/\/www.n-able.com\/fr#website","url":"https:\/\/www.n-able.com\/fr","name":"N-able","description":"","publisher":{"@id":"https:\/\/www.n-able.com\/fr#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.n-able.com\/fr?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.n-able.com\/fr#organization","name":"N-able","url":"https:\/\/www.n-able.com\/fr","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.n-able.com\/fr#\/schema\/logo\/image\/","url":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg","contentUrl":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg","width":"1024","height":"1024","caption":"N-able"},"image":{"@id":"https:\/\/www.n-able.com\/fr#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/NableMSP","https:\/\/x.com\/Nable","https:\/\/www.linkedin.com\/company\/n-able","https:\/\/www.youtube.com\/channel\/UClnp77HHg4aME-S-3fWQhFw"]},{"@type":"Person","@id":"https:\/\/www.n-able.com\/fr#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5","name":"Marc-Andre Tanguay","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g","caption":"Marc-Andre Tanguay"}}]}},"_links":{"self":[{"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/posts\/6645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/comments?post=6645"}],"version-history":[{"count":0,"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/posts\/6645\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.n-able.com\/fr\/wp-json\/wp\/v2\/media?parent=6645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}