{"id":13820988,"url":"https://github.com/AndreiD/SlackUptimeMonitor","last_synced_at":"2025-05-16T10:33:59.907Z","repository":{"id":55366771,"uuid":"71236922","full_name":"AndreiD/SlackUptimeMonitor","owner":"AndreiD","description":"Receive notifications in Slack when your websites/api/services are down","archived":false,"fork":false,"pushed_at":"2020-10-01T20:50:37.000Z","size":44,"stargazers_count":16,"open_issues_count":41,"forks_count":59,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T05:53:53.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-18T10:29:05.000Z","updated_at":"2024-01-19T10:24:15.000Z","dependencies_parsed_at":"2022-08-14T22:40:31.415Z","dependency_job_id":null,"html_url":"https://github.com/AndreiD/SlackUptimeMonitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FSlackUptimeMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FSlackUptimeMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FSlackUptimeMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2FSlackUptimeMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiD","download_url":"https://codeload.github.com/AndreiD/SlackUptimeMonitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254513020,"owners_count":22083492,"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":[],"created_at":"2024-08-04T08:01:13.024Z","updated_at":"2025-05-16T10:33:54.892Z","avatar_url":"https://github.com/AndreiD.png","language":"Python","readme":"# Website Down Notifier on Slack\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/AndreiD/SlackUptimeMonitor/master/slackmonitor.JPG\" alt=\"slack website up down notifier uptime ping\"/\u003e\n\n#### A simple, one file script that notifies you on slack when your website is down.\n\n## Configuration\n\n### Step 1 - Get the script\n\nSimply copy paste the script uptimemonitor.py into your server. After you test it add it to cron with your preferred check interval\n\nExample for checks every minute\n~~~~\n$crontab -e\n* * * * * /home/uptimemonitor/uptimemonitor.py \u003e /root/uptimenotifier.log\n$service cron restart\n$tail -f /root/uptimenotifier.log\n~~~~\n\nNote that the script is written in Python3.5.\n\n### Step 2 -  Setup the config variables\n\n\nURLS_TO_CHECK = [\"http://facebook.com\",\n                 \"https://youtube.com:9540\"]\n\n#### You have to have a token so you can send messages to a slack channel! Get one here\nhttps://api.slack.com/docs/oauth-test-tokens\n\nYou need then to export it as an environmental variable or hardcoded\n\n~~~~\nexport SLACK_TOKEN = 'your_token_here'\n~~~~\n\nSLACK_TOKEN = os.environ.get('SLACK_TOKEN')\n\n#### Where you want to receive your notifications ?\n\nyou can get it using list_channels and channel_info or click on the channel name\n\nclick on add app or integration and you can view it's id in the webpage redirection (you have to be fast because it redirects it to another page)\n\n~~~~\nCHANNEL_ID = \"G2LCBCXGF\"\n~~~~\n\n\n### Step 3 - ???\n\n### Step 4 - Profit\n\n### Remember to star this repository and fork it.\n\n#### Bugs / Issues / Suggestions -\u003e write me a message on \"Issues\"\n\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndreiD%2FSlackUptimeMonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAndreiD%2FSlackUptimeMonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndreiD%2FSlackUptimeMonitor/lists"}