From f8545ef72cecaba352fd29cd68a3f78b6efc6227 Mon Sep 17 00:00:00 2001 From: Jack Greyhat Date: Thu, 28 Jan 2021 14:07:24 +0100 Subject: [PATCH] finalize instructions --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e199b09..5076b1b 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Screenshot:
`speedtest --version`
Expected example output:
`Speedtest by Ookla 1.0.0.2` +
``` NOTE: There is also the "speedtest-cli" package, which is possibly provided by your distribution's repository. @@ -42,8 +43,12 @@ to the shell commands or temporarily become a user with root privileges. `cp -r ~/librenms-speedtest/. /opt/librenms/html/plugins/Speedtest` - Ensure correct ownership and permissions on the Speedtest plugin directory and files:
`chown -R librenms:librenms /opt/librenms/html/plugins/Speedtest`
-`chmod -R --reference=/opt/librenms/html/plugins/Test /opt/librenms/html/plugins/Speedtest`
+`chmod -R --reference=/opt/librenms/html/plugins /opt/librenms/html/plugins/Speedtest`
`chmod +x /opt/librenms/html/plugins/Speedtest/librenms-speedtest.sh`
+- Create a cron job to run the speedtest periodically. Edit the following file:
+`vi /etc/cron.d/librenms`
+and add:
+`30 * * * * librenms /opt/librenms/html/plugins/Speedtest/librenms-speedtest.sh run && /opt/librenms/html/plugins/Speedtest/librenms-speedtest.sh graph` - Switch to the librenms user:
`su - librenms` - Accept the speedtest EULA and GDPR notice (if applicable) and run an initial speedtest:
@@ -59,3 +64,4 @@ to the shell commands or temporarily become a user with root privileges. - Go to your LibreNMS web interface, and go to "Overview" -> "Plugins" -> "Plugin Admin" - Enable the "Speedtest" plugin. - Find the "Speedtest" plugin under "Overview" -> "Plugins" -> "Speedtest" +- Profit. \ No newline at end of file