Skip to content

aelliott1485/urlStatusNotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Status notifier

This utility will check URLs at intervals and notify recipient(s) when the status code changes

Configuration

Clone repository

git clone https:/aelliott1485/urlStatusNotifier.git

Change to directory

cd urlStatusNotifier

Install dependencies

npm install

Copy the example configuration

cp config.example.js config.js

Modify config.js accordingly. It can contain an array of options - for example:

module.exports = [
{
    subject: 'test URL Check',		//Email Subject 
    to: '[email protected]',		//Recipient email addresses
    expected: 200,					//Expected status code
    intervalMinutes: 5,				//number of minutes to check
    user: '[email protected]',		//Sender Email address
    sender: 'URL check notifier',	//Sender Name
    pass: 'PW_FROM_EMAIL',			//app password - see https://nodemailer.com/usage/using-gmail/
    url: 'https://example.com/'		//URL to check
}
];	

Run it

npm run checks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published