sloef
v0.0.6
Published
Module to check if online services are still running
Downloads
4
Readme
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 [email protected]:lovebug356/sloef.git
Configuration
A configuration file (/etc/sloef.json
or .sloef.json
) should have the content:
{
"server": {
"user": "[email protected]",
"password": "xxx",
"host": "smtp.gmail.com",
"ssl": true
},
"from": "[email protected]",
"to": "[email protected]",
"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