{"id":82,"date":"2017-04-27T16:17:35","date_gmt":"2017-04-27T15:17:35","guid":{"rendered":"https:\/\/mindau.de\/blog\/?p=82"},"modified":"2019-01-21T22:45:26","modified_gmt":"2019-01-21T21:45:26","slug":"simple-way-monitor-websites-linux","status":"publish","type":"post","link":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/","title":{"rendered":"[EN] Simple way to monitor websites in Linux with Slack"},"content":{"rendered":"<p>Mostly is very usefull to know if one or another website is down. Here is simple example to monitor your websites:<\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist84225394\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-monitor-websites-sh\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"monitor-websites.sh content, created by grambas on 09:50PM on December 13, 2017.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"monitor-websites.sh\">\n<tr>\n<td id=\"file-monitor-websites-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-monitor-websites-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">#!\/bin\/sh<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-monitor-websites-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\"># script to check website status (online\/ofline)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-monitor-websites-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-monitor-websites-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">while read site<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-monitor-websites-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">do<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-monitor-websites-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">    if ping -w 60 -c1 -q &quot;$site&quot; &amp;&gt;\/dev\/null; then<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-monitor-websites-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">        echo &quot;$site is up&quot; # for debug<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-monitor-websites-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">    else<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-monitor-websites-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">        # action to do if website offline<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-monitor-websites-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">        echo &quot;[$(date +%d-%m-%Y:%H:%M:%S)] $site is not reachable.&quot; | slackpost.sh<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-monitor-websites-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\">    fi<\/td>\n<\/tr>\n<tr>\n<td id=\"file-monitor-websites-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-monitor-websites-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\">done &lt; \/path\/to\/file\/sites.txt # list of sites to check<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/grambas\/6950da61b5ad31185931ddb2c0f9ecab\/raw\/ad30cea3b7874760e82dd1405b48cc274af96186\/monitor-websites.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/grambas\/6950da61b5ad31185931ddb2c0f9ecab#file-monitor-websites-sh\" class=\"Link--inTextBlock\"><br \/>\n          monitor-websites.sh<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n<p>sites.txt example<\/p>\n<pre class=\"lang:default decode:true\">website1.com\nwebsite2.com\n<\/pre>\n<p>Now you can add it to crontab. Type crontab -e and insert:<\/p>\n<pre class=\"lang:default decode:true\"># ping websites every minute\n* * * * * \/path\/to\/monitor-websites.sh &gt; \/dev\/null\n<\/pre>\n<p>The script use my notification function to slack. This tutorial you can find at\u00a0<a href=\"https:\/\/mindau.de\/blog\/en\/en-post-messages-slack-linux\/\">[Tutorial] send message with linux to slack<\/a><\/p>\n<p>Example of message in slack if website is offline:<\/p>\n<figure id=\"attachment_83\" aria-describedby=\"caption-attachment-83\" style=\"width: 542px\" class=\"wp-caption alignnone\"><img data-attachment-id=\"83\" data-permalink=\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/attachment\/slack_2017-04-27_16-34-16\/\" data-orig-file=\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16.png\" data-orig-size=\"542,124\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"slack notification example\" data-image-description=\"&lt;p&gt;slack notification example&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;slack notification example&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16-300x69.png\" data-large-file=\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16.png\" loading=\"lazy\" class=\"wp-image-83 size-full\" title=\"slack post message example\" src=\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16.png\" alt=\"slack post message example\" width=\"542\" height=\"124\" srcset=\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16.png 542w, https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16-300x69.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><figcaption id=\"caption-attachment-83\" class=\"wp-caption-text\">slack post message example<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Mostly is very usefull to know if one or another website is down. Here is simple example to monitor your websites: This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more &hellip; <a href=\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">[EN] Simple way to monitor websites in Linux with Slack<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"Simple way to monitor websites in linux","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[5,11,14],"tags":[],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[EN] Simple way to monitor websites in Linux with Slack - Mindau | Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[EN] Simple way to monitor websites in Linux with Slack - Mindau | Blog\" \/>\n<meta property=\"og:description\" content=\"Mostly is very usefull to know if one or another website is down. Here is simple example to monitor your websites: This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more &hellip; Continue reading [EN] Simple way to monitor websites in Linux with Slack\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Mindau | Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-27T15:17:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-21T21:45:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16.png\" \/>\n<meta name=\"author\" content=\"Mindau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MindaugasMilius\" \/>\n<meta name=\"twitter:site\" content=\"@MindaugasMilius\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mindau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\"},\"author\":{\"name\":\"Mindau\",\"@id\":\"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998\"},\"headline\":\"[EN] Simple way to monitor websites in Linux with Slack\",\"datePublished\":\"2017-04-27T15:17:35+00:00\",\"dateModified\":\"2019-01-21T21:45:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\"},\"wordCount\":99,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998\"},\"articleSection\":[\"English\",\"Linux\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\",\"url\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\",\"name\":\"[EN] Simple way to monitor websites in Linux with Slack - Mindau | Blog\",\"isPartOf\":{\"@id\":\"https:\/\/mindau.de\/blog\/#website\"},\"datePublished\":\"2017-04-27T15:17:35+00:00\",\"dateModified\":\"2019-01-21T21:45:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mindau.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[EN] Simple way to monitor websites in Linux with Slack\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mindau.de\/blog\/#website\",\"url\":\"https:\/\/mindau.de\/blog\/\",\"name\":\"Mindau | Blog\",\"description\":\"Mindaugas Milius\",\"publisher\":{\"@id\":\"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mindau.de\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998\",\"name\":\"Mindau\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mindau.de\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2022\/02\/1639431846236.jpeg\",\"contentUrl\":\"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2022\/02\/1639431846236.jpeg\",\"width\":250,\"height\":250,\"caption\":\"Mindau\"},\"logo\":{\"@id\":\"https:\/\/mindau.de\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/mindau.de\",\"https:\/\/www.linkedin.com\/in\/mindaugasmilius\/\",\"https:\/\/twitter.com\/MindaugasMilius\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[EN] Simple way to monitor websites in Linux with Slack - Mindau | Blog","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:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/","og_locale":"en_US","og_type":"article","og_title":"[EN] Simple way to monitor websites in Linux with Slack - Mindau | Blog","og_description":"Mostly is very usefull to know if one or another website is down. Here is simple example to monitor your websites: This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more &hellip; Continue reading [EN] Simple way to monitor websites in Linux with Slack","og_url":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/","og_site_name":"Mindau | Blog","article_published_time":"2017-04-27T15:17:35+00:00","article_modified_time":"2019-01-21T21:45:26+00:00","og_image":[{"url":"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_16-34-16.png"}],"author":"Mindau","twitter_card":"summary_large_image","twitter_creator":"@MindaugasMilius","twitter_site":"@MindaugasMilius","twitter_misc":{"Written by":"Mindau","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#article","isPartOf":{"@id":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/"},"author":{"name":"Mindau","@id":"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998"},"headline":"[EN] Simple way to monitor websites in Linux with Slack","datePublished":"2017-04-27T15:17:35+00:00","dateModified":"2019-01-21T21:45:26+00:00","mainEntityOfPage":{"@id":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/"},"wordCount":99,"commentCount":2,"publisher":{"@id":"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998"},"articleSection":["English","Linux","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/","url":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/","name":"[EN] Simple way to monitor websites in Linux with Slack - Mindau | Blog","isPartOf":{"@id":"https:\/\/mindau.de\/blog\/#website"},"datePublished":"2017-04-27T15:17:35+00:00","dateModified":"2019-01-21T21:45:26+00:00","breadcrumb":{"@id":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mindau.de\/blog\/en\/simple-way-monitor-websites-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mindau.de\/blog\/"},{"@type":"ListItem","position":2,"name":"[EN] Simple way to monitor websites in Linux with Slack"}]},{"@type":"WebSite","@id":"https:\/\/mindau.de\/blog\/#website","url":"https:\/\/mindau.de\/blog\/","name":"Mindau | Blog","description":"Mindaugas Milius","publisher":{"@id":"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mindau.de\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/mindau.de\/blog\/#\/schema\/person\/b59ad18a46b5a55b9319b41779682998","name":"Mindau","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mindau.de\/blog\/#\/schema\/person\/image\/","url":"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2022\/02\/1639431846236.jpeg","contentUrl":"https:\/\/mindau.de\/blog\/wp-content\/uploads\/2022\/02\/1639431846236.jpeg","width":250,"height":250,"caption":"Mindau"},"logo":{"@id":"https:\/\/mindau.de\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/mindau.de","https:\/\/www.linkedin.com\/in\/mindaugasmilius\/","https:\/\/twitter.com\/MindaugasMilius"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pcptsa-1k","jetpack-related-posts":[{"id":72,"url":"https:\/\/mindau.de\/blog\/en\/en-post-messages-slack-linux\/","url_meta":{"origin":82,"position":0},"title":"[EN] Post messages to slack from linux","date":"April 27, 2017","format":false,"excerpt":"Firstly you need to create webhook url in slack. How to do it you can find at\u00a0https:\/\/www.programmableweb.com\/news\/how-to-integrate-webhooks-slack-api\/how-to\/2015\/10\/20 Secondly you need for example a bash script. My version you can find\u00a0in gist: https:\/\/gist.github.com\/67ef18335aa4fb8576bd9a89092b0a18#file-slackpost-sh For comfort usage I\u00a0have copied it to bin folder cp \/current\/path\/to\/slackpost.sh \/usr\/local\/bin\/slackpost.sh chmod +x \/usr\/local\/bin\/slackpost.sh Now you cant\u2026","rel":"","context":"In &quot;English&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":93,"url":"https:\/\/mindau.de\/blog\/en\/send-notifications-linux-fail2ban-ssh-auth-actions-slack\/","url_meta":{"origin":82,"position":1},"title":"How to send notifications from Linux fail2ban, ssh auth and other actions to Slack","date":"April 27, 2017","format":false,"excerpt":"For this approach i will use my slackpost.sh script to send messages to Slack. More info about it you can find -\u00a0https:\/\/mindau.de\/blog\/en\/en-post-messages-slack-linux\/ fail2ban How to install and configure fail2ban you can find for example here -\u00a0https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-protect-ssh-with-fail2ban-on-ubuntu-14-04 Now edit fail2ban jail.local file sudo nano \/etc\/fail2ban\/jail.local add \"slack\" hook where you want\u2026","rel":"","context":"In &quot;English&quot;","img":{"alt_text":"slack notification example","src":"https:\/\/i0.wp.com\/mindau.de\/blog\/wp-content\/uploads\/2017\/04\/slack_2017-04-27_19-02-45.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":104,"url":"https:\/\/mindau.de\/blog\/en\/raspberry-pi-garden-assistant-project\/","url_meta":{"origin":82,"position":2},"title":"Raspberry Pi Garden Assistant Project","date":"May 31, 2017","format":false,"excerpt":"Project Plan and Goals The idea is to make smart garden house. Main tasks is to provide internet from mobile sim card to WiFi access point, automatizes mart watering and log some interesting data. This is my TO DO list. I will\u00a0continually update it by adding links to details. Internet\u2026","rel":"","context":"In &quot;English&quot;","img":{"alt_text":"Garden Project Scheme","src":"https:\/\/i0.wp.com\/mindau.de\/blog\/wp-content\/uploads\/2017\/05\/download.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":288,"url":"https:\/\/mindau.de\/blog\/en\/auto-webserver-and-database-backup-with-gpg-encryption-to-amazon-s3\/","url_meta":{"origin":82,"position":3},"title":"Auto webserver and database backup with GPG encryption to Amazon S3","date":"December 15, 2017","format":false,"excerpt":"In this tutorial I will show you step-by-step\u00a0 instructions how to make cheap and secure encrypted backups of you webserver (or any other dir)\u00a0 files on you linux\u00a0 server using Amazon Storage Service Create Bucket and User at Amazon AWS Some links that we will need Amazon Console link -\u2026","rel":"","context":"In &quot;English&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":111,"url":"https:\/\/mindau.de\/blog\/en\/how-to-tutorials\/secure-nginx-configuration\/","url_meta":{"origin":82,"position":4},"title":"Secure Nginx configuration","date":"May 3, 2017","format":false,"excerpt":"After some research and digging, I made my nginx and domain configuration files. If I have something missed, you are welcome to write it in comment here or at Github. Mostly everything are commented so to understand code should be not problem. https:\/\/gist.github.com\/grambas\/a978ae5cdea456a5f8a55796a6cd6e7f#file-nginx-conf UPDATE: If you want more advanced solution,\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"nginx secure configuration","src":"https:\/\/i0.wp.com\/mindau.de\/blog\/wp-content\/uploads\/2017\/05\/nginx-secure-configuration.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":453,"url":"https:\/\/mindau.de\/blog\/en\/super-fast-and-easy-email-synchronization-with-imapsync-and-docker\/","url_meta":{"origin":82,"position":5},"title":"Super fast and easy email synchronization with imapsync and docker","date":"February 27, 2019","format":false,"excerpt":"If you need to migrate or transfer an email server to other provider, then you also need to export \/ import all your emails and folders. In that case you can struggle with many problems. For example: Different Email Clients with different export formatNo export or import function Costly import\u2026","rel":"","context":"In &quot;English&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mindau.de\/blog\/wp-content\/uploads\/2019\/02\/email-3249062_640.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/posts\/82"}],"collection":[{"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":7,"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":321,"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions\/321"}],"wp:attachment":[{"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindau.de\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}