sloef

0.0.6 • Public • Published

Sloef

Sloef is a small module that checks if online services (like web pages) are still online. On Failure it sends an email to a preconfigured email address.

Installation

Sloef is available via git or npm.

npm install -g sloef

or

git clone git@github.com:lovebug356/sloef.git

Configuration

A configuration file (/etc/sloef.json or .sloef.json) should have the content:

{
  "server": {
    "user": "xxx@xxx.xx",
    "password": "xxx",
    "host": "smtp.gmail.com",
    "ssl": true
  },
  "from": "xxx@xxx.xx",
  "to": "xxx@xxx.xx",
  "retryDelay": 60000,
  "retryCount": 5,
  "urls": [
    "http://www.nodejs.org"
  ]
}

Systemd

After copying (and adapting) the systemd service and timer file, the timer (or service) can be enabled and sloef is running.

cp systemd/sloef.service /etc/systemd/system
cp systemd/sloef.timer /etc/systemd/system
sudo systemctl enable sloef.timer

Readme

Keywords

none

Package Sidebar

Install

npm i sloef

Weekly Downloads

1

Version

0.0.6

License

none

Last publish

Collaborators

  • lovebug356