From 8be04d4fce91eda628e247e3a6262b83cab5abf1 Mon Sep 17 00:00:00 2001 From: Jack Greyhat Date: Thu, 21 Jan 2021 16:12:44 +0100 Subject: [PATCH] change png layout --- librenms-speedtest.sh | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/librenms-speedtest.sh b/librenms-speedtest.sh index a401b71..cf673df 100644 --- a/librenms-speedtest.sh +++ b/librenms-speedtest.sh @@ -84,17 +84,29 @@ SpeedtestResultDir=/opt/librenms-speedtest/tmp VDEF:Yavg=Y0,AVERAGE \ VDEF:Davg=D,AVERAGE \ VDEF:Uavg=NegU,AVERAGE \ - AREA:D#61ab3d:Download \ - AREA:NegU#3d61ab:Upload \ - LINE1:Uavg#cc1100 \ - LINE1:Davg#cc3300:"Avg" \ - LINE1:Yavg#111111 \ + VDEF:Uavg2=U,AVERAGE \ + AREA:D#61ab3d:"Download" \ + AREA:NegU#3d61ab:"Upload" \ + LINE1:Uavg#cc1100: \ + LINE1:Davg#cc3300:"Avg\n" \ + LINE1:Yavg#111111: \ GPRINT:D:LAST:"Last download bandwidth\: %2.1lf Mb/s\n" \ GPRINT:U:LAST:"Last upload bandwidth\: %2.1lf Mb/s\n" \ - GPRINT:Davg:"Avg bandwidth %2.1lf Mb/s" \ + GPRINT:Davg:"Avg download bandwidth %2.1lf Mb/s\n" \ + GPRINT:Uavg2:"Avg upload bandwidth %2.1lf Mb/s" \ -h 300 -w 650 -y1:2 \ - --color GRID#dddddd \ - --color MGRID#aaaaaa > /dev/null 2>&1 + -c BACK#EEEEEE00 \ + -c SHADEA#EEEEEE00 \ + -c SHADEB#EEEEEE00 \ + -c CANVAS#FFFFFF00 \ + -c GRID#a5a5a5 \ + -c MGRID#FF9999 \ + -c FRAME#5e5e5e \ + -c ARROW#5e5e5e \ + -R normal \ + -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/image