Skip to content

Installation

Fabian Heinz edited this page May 5, 2021 · 2 revisions

Linux


1. Download

Download the files and place it in a folder of your choice.

2. Configure

Configure the monitoring tool according to configuration wiki page.

3. Install dependencies

Run npm i to load all needed dependencies.

4. Do a test run

Do a test run using node ./app.js If it is working fine, continue with Step 5.

5. Setup monitoring as a service

Create a service file in ´/lib/systemd/system/´:

nano /lib/systemd/system/plesk-monitoring

Insert following code:

[Unit]
Description=plesk website monitoring
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
ExecStart=/usr/bin/node /your/location/of/this/program/app.js

[Install]
WantedBy=default.target

Replace /your/location/of/this/program/ with the absolute path of the downloaded files in Step 1.

Then start the service with systemctl start plesk-monitoring.

If the service starts without any errors, you can

6. Enable service at system startup

If you want to automatically start this service at server reboot, just execute systemctl enable plesk-monitoring.

Please note that running on a external server is strongly adviced!