{"id":18987948,"url":"https://github.com/misskecupbung/monitbot-tele","last_synced_at":"2025-06-24T23:32:08.316Z","repository":{"id":93515418,"uuid":"294304918","full_name":"misskecupbung/monitbot-tele","owner":"misskecupbung","description":"Simple Bot Telegram to Monitor Website, Database and Ping Server.","archived":false,"fork":false,"pushed_at":"2020-09-10T05:32:14.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T13:42:14.828Z","etag":null,"topics":["bot","cron","notification","telegram"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/misskecupbung.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":"2020-09-10T04:42:46.000Z","updated_at":"2020-09-28T04:38:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"6486e426-e514-4cf6-9000-6f970d3ba4ea","html_url":"https://github.com/misskecupbung/monitbot-tele","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/misskecupbung%2Fmonitbot-tele","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misskecupbung%2Fmonitbot-tele/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misskecupbung%2Fmonitbot-tele/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misskecupbung%2Fmonitbot-tele/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/misskecupbung","download_url":"https://codeload.github.com/misskecupbung/monitbot-tele/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239996769,"owners_count":19731292,"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":["bot","cron","notification","telegram"],"created_at":"2024-11-08T16:41:25.799Z","updated_at":"2025-02-21T10:30:05.106Z","avatar_url":"https://github.com/misskecupbung.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monitbot-telegram\n\nThis guide is refered from https://github.com/matriphe/monit2telegram/ . Goals:\n* Monitoring database, website and ping.\n* If fails, it will send notification via bot.\n\n### Requirements\n* Bot Telegram , you can create from eg: @botfather. Remember the token!\n* Curl\n* Bash\n* JQ\n* Cron\n\n### Chat ID\n\n```\n$ curl --silent \"https://api.telegram.org/bot{TOKEN}/getUpdates\" | jq\n```\n\n### Deployment\n\n```\ncd /opt\ngit clone https://github.com/misskecupbung/monitbot-telegram\ncd monitbot-tele\nvim tokenbot\n...\nTOKEN={{ Telegram Bot Token }}\nCHATID={{ Chat ID }}\n...\n\n#If you want to custom token path, you must edit :\n\nvim monitbot-tele/telegramrc\n...\nelif [ -f /path/custom ]; then . /path/custom;\n...\n\n```\n### Testing\n```\nchmod +x pingcheck \u0026\u0026 ./pingcheck\nchmod +x dbcheck \u0026\u0026 ./dbcheck\nchmod +x httpcheck \u0026\u0026 ./httpcheck\n\n```\n\n## Cron\nWe use cronjob for monitoring everyday. Eg: if every 3 minutes website don't give a response, it will send notification via bot to telegram :\n\n```\ncrontab -e\n...\n*/3 * * * * /opt/monitbot-tele/httpcheck\n*/3 * * * * /opt/monitbot-tele/dbcheck\n*/3 * * * * /opt/monitbot-tele/pingcheck\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisskecupbung%2Fmonitbot-tele","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisskecupbung%2Fmonitbot-tele","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisskecupbung%2Fmonitbot-tele/lists"}