Skip to content

RichardHan/website-monitoring

Repository files navigation

How it works

1.git clone https://github.com/RichardHan/website-monitoring.git

2.cd website-monitoring

3.(Mandatory) Manually create mail_config.json ,to decide Gmail account setting. Note: You need to choose SMTP provider. Please checkout Node Mailer for more details.

{
  "provider": "gmail",
  "gmail": {
	"user": "[email protected]",
	"pass": "UseYourGmailPassword"
  },
  "from": "[email protected]",
  "to": "[email protected]; [email protected]; [email protected]"
}

4.(Mandatory) Manually create websites.json List all websites that you want to monitor. The interval property is the polling interval in minutes.
The bodyContain property is the response match string in response body.

[
  {
	"url": "https://www.google.com.tw/",
	"interval": "1",
	"bodyContain": "</html>"
  },
  {
	"url": "https://tw.yahoo.com/",
	"interval": "1",
	"bodyContain": "</html>"
  }
]

5.(Optional) Modify app_config.json to decide app setting.

6.npm install

7.Run node app command to start monitoring your websites.

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published