Commit Briefs

e4acd53410 gonzalo

Add LICENSE file (master)


5ae76531c1 gonzalo

Delete CVSROOT dir


0eadf7a127 gonzalo

Let's add a message when it is UP


618bc9a04d gonzalo

add tg-webcheck


5c52caa3f2 gonzalo

initial checkin


Branches

Tags

This repository contains no tags

Tree

LICENSEcommits | blame
README.mdcommits | blame
tg-webcheck*commits | blame

README.md

# Telegram Bot - Web Check
Little depless bot for telegram that checks if a site is up or down by the HTTP code

## Requirements
You need a telegram bot for this, so for that you should follow the official
documentation:

[https://core.telegram.org/bots](https://core.telegram.org/bots)

Or just "talk" with the following bots and follow the steps:

[Bot Father](https://t.me/botfather)
[Bot ID](https://t.me/idbot)

## Usage
I'm using this in a really simple way, just to get an extra check from
"outside" of my websites besides my real monitoring system.

### List of sites
```
$ pwd
/home/gonzalo/monitoring
$ cat webs.txt
openbsd.org
foobar.org
foobar.com
f00bar.org
f00bar.com
poop.org
poop.com.ar
$ touch /var/log/web-checks.log
$ doas chown gonzalo:gonzalo /var/log/web-checks.log
$ for i in $(cat webs.txt); do sh tg-webcheck $i; done
```

### Just one site
```
$ pwd
/home/gonzalo/monitoring
$ touch /var/log/web-checks.log
$ doas chown gonzalo:gonzalo /var/log/web-checks.log
$ sh tg-webcheck poop.org
```