Archived
1
0

smokeping-setup: Fixed readability and typos

This commit is contained in:
2022-11-17 15:35:31 +01:00
parent 80a8900641
commit 68d18a78c0

View File

@@ -4,8 +4,8 @@ Intructions for setting up SmokePing on Alpine Linux
## Main(Master) ## Main(Master)
Needed packages: smokeping lighttpd Needed packages: smokeping lighttpd
make sure to empty the remote secret file (/etc/smokeping/smokeping_secrets), make sure to empty the remote secret file (/etc/smokeping/smokeping_secrets),
you also need to correct the permmisions `chown smokeping:smokeping /etc/smokeping/smokeping_secrets` you also need to correct the permissions `chown smokeping:smokeping /etc/smokeping/smokeping_secrets`
Lighttpd (/etc/lighttpd/lighttpd.conf) Lighttpd (/etc/lighttpd/lighttpd.conf)
``` ```
@@ -171,19 +171,19 @@ Start and Enable services on boot `service smokeping start && service lighttpd s
### On Main ### On Main
Add the name and a secret in in the secrets file`/etc/smokeping/smokeping_secrets` using the following format (one per line) `remotehostname:Secret` Add the name and a secret in in the secrets file`/etc/smokeping/smokeping_secrets` using the following format (one per line) `remotehostname:Secret`
Add the host to the slaves section using the folling exampe: Add the host to the slaves section using the following example:
``` ```
+remotehostname +remotehostname
display_name=Remote-Hostname display_name=Remote-Hostname
color=00ffff color=00ffff
``` ```
Add the host to the `slaves` section of the targets (should be seperated with a space) Add the host to the `slaves` section of the targets (should be seperated with a space)
Last step on main is to restart smokeping `service smokeping restart` Last step on main is to restart smokeping `service smokeping restart`
### On Remote ### On Remote
Needed packages: smokeping Needed packages: smokeping
Put a secret in `/etc/smokeping/secret.txt` Put a secret in `/etc/smokeping/secret.txt`
set its permissions `chown smokeping:smokeping /etc/smokeping/secret.txt && chmod 600 /etc/smokeping/secret.txt` set its permissions `chown smokeping:smokeping /etc/smokeping/secret.txt && chmod 600 /etc/smokeping/secret.txt`
Service file(/etc/init.d/smokeping-remote) Service file(/etc/init.d/smokeping-remote)
@@ -216,6 +216,6 @@ stop() {
eend $? eend $?
} }
``` ```
Set permissions service file ``chmod +x /etc/init.d/smokeping-remote` Set permissions service file `chmod +x /etc/init.d/smokeping-remote`
Start and Enable service on boot `service smokeping-remote start && rc-update add smokeping-remote default` Start and Enable service on boot `service smokeping-remote start && rc-update add smokeping-remote default`
Add to Root cron tab to auto reload after crash (/etc/crontabs/root) `echo '* * * * * openrc --no-stop' >> /etc/crontabs/root` Add to Root cron tab to auto reload after crash (/etc/crontabs/root) `echo '* * * * * openrc --no-stop' >> /etc/crontabs/root`