-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Fabian Heinz edited this page May 5, 2021
·
2 revisions
Download the files and place it in a folder of your choice.
Configure the monitoring tool according to configuration wiki page.
Run npm i
to load all needed dependencies.
Do a test run using node ./app.js
If it is working fine, continue with Step 5.
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
If you want to automatically start this service at server reboot, just execute systemctl enable plesk-monitoring
.