From 89a40eb6e0b1b1f5c3f30412b1b2ccd5b6057d1e Mon Sep 17 00:00:00 2001 From: Jack Greyhat Date: Tue, 26 Jan 2021 15:56:07 +0100 Subject: [PATCH] proper code being added again --- Speedtest.inc.php | 30 ++++++++++++++++++++++-------- Speedtest.php | 8 ++++++++ librenms-speedtest.sh | 5 +---- 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/Speedtest.inc.php b/Speedtest.inc.php index 462618e..d0cd674 100644 --- a/Speedtest.inc.php +++ b/Speedtest.inc.php @@ -1,6 +1,20 @@ +
+
+ +
+ antnetscaler02.icl-ltd.com
+ POP (default) +
+
+ +
+
+
+ +
@@ -9,16 +23,16 @@
- +
- +
- +
- +
@@ -28,16 +42,16 @@
- +
- +
- +
- +
diff --git a/Speedtest.php b/Speedtest.php index e69de29..6a50fda 100644 --- a/Speedtest.php +++ b/Speedtest.php @@ -0,0 +1,8 @@ +'.get_class().''); + } + +} +?> \ No newline at end of file diff --git a/librenms-speedtest.sh b/librenms-speedtest.sh index bd7b925..28baac5 100644 --- a/librenms-speedtest.sh +++ b/librenms-speedtest.sh @@ -3,7 +3,7 @@ # LibreNMS Speedtest plugin # ############################# # Main plugin dir -SpeedtestPluginDir=/opt/librenms/html/plugins +SpeedtestPluginDir=/opt/librenms/html/plugins/Speedtest # Other data dirs RRDGraphsDir=$SpeedtestPluginDir/rrd PNGImagesDir=$SpeedtestPluginDir/png @@ -305,9 +305,6 @@ SpeedtestResultDir=$SpeedtestPluginDir/tmp -c FONT#000000 \ --font LEGEND:8:DejaVuSansMono \ --font AXIS:7:DejaVuSansMono > /dev/null 2>&1 - - # Move PNGs to the LibreNMS plugin location - cp $PNGImagesDir/*.png /opt/librenms/html/plugins/Speedtest/png ;; (*)