Skip to content

Bot that scans website(s) status code and email the admin if it is not 200 (OK).

Notifications You must be signed in to change notification settings

knaiskes/GoMonitorPages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Go website monitor

How it works

You add the urls of the webpage(s) that want to monitor in a list (slice) and the program constanly checks their status code, if any of the webpage in the list has status code other than 200 an e-mail will be sent to you with the url of the webpage and its status code, after this the url of this webpage will be temporary removed from the list for 20 minutes so you will not get spammed.

Requirements

  • Go 1.8 or greater
  • A Gmail address

Email credentials setup

Add in the email.go file your Gmail address and password and the address that you want to be emailed.

// enter your credentials
receiver := ""
sender := ""
passw := ""

Add the webpage's urls that you want to monitor in the slice called urls which can be found in watchSites.go file

About

Bot that scans website(s) status code and email the admin if it is not 200 (OK).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages