Skip to content
/ uptime Public

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

Notifications You must be signed in to change notification settings

uberswe/uptime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks