{"id":21495792,"url":"https://github.com/easytecrepository/websitemonitoring","last_synced_at":"2025-03-17T12:14:40.392Z","repository":{"id":204299775,"uuid":"535041008","full_name":"EasyTecRepository/WebsiteMonitoring","owner":"EasyTecRepository","description":"A easy way to see the current status of your services, no matter where you are.","archived":false,"fork":false,"pushed_at":"2023-10-29T17:32:45.000Z","size":2823,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T21:51:20.951Z","etag":null,"topics":["discord-notifications","email-notification","statuspage-io","website-monitoring"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EasyTecRepository.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-10T15:37:26.000Z","updated_at":"2023-10-29T14:58:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6be82204-497e-4143-8d4e-df1288399915","html_url":"https://github.com/EasyTecRepository/WebsiteMonitoring","commit_stats":null,"previous_names":["easytecrepository/websitemonitoring"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyTecRepository%2FWebsiteMonitoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyTecRepository%2FWebsiteMonitoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyTecRepository%2FWebsiteMonitoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyTecRepository%2FWebsiteMonitoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EasyTecRepository","download_url":"https://codeload.github.com/EasyTecRepository/WebsiteMonitoring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031153,"owners_count":20386534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-notifications","email-notification","statuspage-io","website-monitoring"],"created_at":"2024-11-23T16:13:26.022Z","updated_at":"2025-03-17T12:14:40.359Z","avatar_url":"https://github.com/EasyTecRepository.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Website Monitoring script 🖥️\n![](https://img.shields.io/badge/Status-Finished-green)\n![](https://img.shields.io/badge/Version-BETA-orange)\n\nThis is an **easy way** to see the current status of your services, **no matter** where you are.\n\nWelcome to this repository!\nThis repository contains a script with which you can query the current status of your websites.\nYou can choose which functions you want to have.\n\nAvailable features: **statuspage.io** , **Discord Webhook** , **E-Mail-Notification**\n\nIf you need a detailed tutorial on setting it up, feel free to [check out this video on YouTube](https://youtube.com/EasyTec100)!\n\n## Requirements\nThis git tool is needed to bring this repository to your system.\n```\nsudo apt install git\n```\n\nThis tool can parse, filter and transform JSON data. Mostly already preinstalled.\n```\nsudo apt install jq\n```\n\n## Get started\nRun the following command\n```\ngit clone https://github.com/EasyTecRepository/StatuspageAutomation.git\n```\n\nChange to folder\n```\ncd WebsiteMonitoring\n```\n\nAdjust all variables\n\n| General Variables            | Description                                                                          |\n| ---------------------------- | ------------------------------------------------------------------------------------ |\n|UNRAID_ENVIRONMENT            | Specifys which system you are using - This is important for the colored display      |\n|storage_file_path             | Specifies where your txt file is located (and what it is called)                     |\n|statuspage_q                  | Specifies whether you want to use the function of Statuspage or not                  |\n|discord_q                     | Specifies whether you want to use the function of Discord-Webhook or not             |\n|email_q                       | Specifies whether you want to use the function of E-Mail-Notification or not         |\n|DOMAIN_ARRAY                  | Here are all your website URL's                                                      |\n\n| Statuspage.io Variables      | Description                                                                          |\n| ---------------------------- | ------------------------------------------------------------------------------------ |\n|AUTHKEY                       | Specifies which authentication token to use for statuspage                           |\n|PAGEID                        | Specifies which pageid to use for statuspage                                         |\n|SERVICE_ARRAY                 | Here are all your website names (You can choose what you call them)                  |\n|COMPONENTID_ARRAY             | Specifies which ComponentID's on statuspage are affected                             |\n\n| Discord Variables            | Description                                                                          |\n| ---------------------------- | ------------------------------------------------------------------------------------ | \n|WEBHOOK                       | Specifies which webhook to use for discord                                           |\n|DISCORD_USERNAME              | Specifies which username to use for your discord webhook                             |\n|DISCORD_AVATAR_URL            | Specifies which URL to use for your discord webhook avatar                           |\n|DISCORD_ERROR_TITLE           | Specifies which title you use for an error message                                   |\n|DISCORD_OKAY_TITLE            | Specifies which title you use for an okay message                                    |\n|DISCORD_FAILURE_TITLE         | Specifies which title you use for an failure message                                 |\n|DISCORD_DEGRADED_TITLE        | Specifies which title you use for an degraded performance message                    |\n|DISCORD_MAINTENANCE_TITLE     | Specifies which title you use for an maintenance message                             |\n|DISCORD_ERROR_COLOR           | Specifies which color (html) you use for an error message                            |\n|DISCORD_FAILURE_COLOR         | Specifies which color (html) you use for an failure message                          |\n|DISCORD_OKAY_COLOR            | Specifies which color (html) you use for an okay message                             |\n|DISCORD_DEGRADED_COLOR        | Specifies which color (html) you use for an degraded performance message             |\n|DISCORD_MAINTENANCE_COLOR     | Specifies which color (html) you use for an maintenance message                      |\n|DISCORD_AUTHOR                | Specifies which Author name you use for your discord webhook message                 |\n|DISCORD_AUTHOR_URL            | Specifies which Author URL you use for your discord webhook message                  |\n|DISCORD_AUTHOR_ICON           | Specifies which Author ICON (URL) you use for your discord webhook message           |\n|DISCORD_ERROR_THUMBNAIL       | Specifies which Thumbnail (URL) you use for your discord webhook error message       |\n|DISCORD_OKAY_THUMBNAIL        | Specifies which Thumbnail (URL) you use for your discord webhook okay message        |\n|DISCORD_MAINTENANCE_THUMBNAIL | Specifies which Thumbnail (URL) you use for your discord webhook maintenance message |\n|DISCORD_FAILURE_THUMBNAIL     | Specifies which Thumbnail (URL) you use for your discord webhook failure message     |\n|DISCORD_SH_LOCATION           | Specifies under which path the discord.sh script is located                          |\n\n| E-Mail Variables             | Description                                                                          |\n| ---------------------------- | ------------------------------------------------------------------------------------ |\n|SMTPFORM                      | Specifies which e-mail address is used as the sender address                         |\n|SMTPTO                        | Specifies which e-mail addresses are used as recipient addresses                     |\n|SMTPSERVER                    | Specifies which e-mail server with port is used                                      |\n|SMTPUSER                      | Specifies which user is used as the sender (usually the sender email address)        |\n|SMTPPASS                      | Specifies which SMTP password is used                                                |\n|mailscript_path               | Specifies under which path your mail script is stored                                |\n\nRun script\n```\nbash statuscheck.sh\n```\nor (if you use my other scripts in this repository (e.g. network_status.sh))\n```\nbash network_status.sh\n```\n\n## Discord.sh setup (optional)\n1. Enter the following in the (Unraid) terminal: \n```\ncd /boot/config/plugins/user.scripts/scripts\n```\n2. Use the following command to create the discord.sh file:\n```\nnano discord.sh\n```\n3. Copy this [script from ChaoticWeg](https://github.com/ChaoticWeg/discord.sh/blob/master/discord.sh) and paste it into the discord.sh file.\n4. Save it and exit the editor with:\n   - ```control+O``` \u0026 ```control+X``` (macOS)\n   - ```STRG+O``` \u0026 ```STRG+X``` (Windows)\n5. Ready. Now the status page script should be able to send a notification via a Discord webhook (If you set the variables in the script correctly).\n\n## Automation\nThis can also be automated with the Cron service, I recommend running this every 5 minutes.\nAnd this is how it works:\nInstall (In most cases this two commands are not needed)\n```\nsudo apt-get update\n```\nand\n```\nsudo apt-get install cron\n```\n\nStart Crontab\n```\ncrontab -e\n```\nSelect ```1```\n\nGo to the very bottom of the open file and paste the following:\n```\n*/5 * * * * /example/path/script.sh\n```\n(At ```/example/path/script.sh``` you have to enter the **_entire_** path! You can find out the whole path for example with the command ```pwd```)\nAfter the correct command is in the crontab, the file can be saved and exited with ```control+O``` \u0026 ```Enter``` and ```control+X``` (Mac). (Under Windows: ```CTRL+O``` \u0026 Enter and ```CTRL+X```)\n\n## Icons\n[Status](https://icons8.com/icon/108535/status) icon by [Icons8](https://icons8.com)\n\n[Maintenance](https://icons8.com/icon/40989/maintenance) icon by [Icons8](https://icons8.com)\n\n[Tick Box](https://icons8.com/icon/15427/tick-box) icon by [Icons8](https://icons8.com)\n\n[Mandatory](https://icons8.com/icon/30881/mandatory) icon by [Icons8](https://icons8.com)\n\n[Error](https://icons8.com/icon/8122/error) icon by [Icons8](https://icons8.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasytecrepository%2Fwebsitemonitoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasytecrepository%2Fwebsitemonitoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasytecrepository%2Fwebsitemonitoring/lists"}