Zerka30 / uptime

A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments, comma separated string with urls and an interval.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uptime

A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments:

-interval=60
-urls='https://ma.rkus.io, https://www.uberswe.com'

You can run this by typing go run cmd/uptime/main.go -interval=5 -urls='https://ma.rkus.io, https://www.uberswe.com' in a terminal.

Logs will look like this:

2021/04/22 00:26:45  https://ma.rkus.io - 200
2021/04/22 00:26:45  https://www.uberswe.com - 200
2021/04/22 00:26:49  https://www.uberswe.com - 200
2021/04/22 00:26:49  https://ma.rkus.io - 200
2021/04/22 00:26:54  https://www.uberswe.com - 200
2021/04/22 00:26:54  https://ma.rkus.io - 200
2021/04/22 00:26:59  https://www.uberswe.com - 200
2021/04/22 00:26:59  https://ma.rkus.io - 200

About

A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments, comma separated string with urls and an interval.

License:MIT License


Languages

Language:Go 84.5%Language:Dockerfile 15.5%